Skip to content
Snippets Groups Projects
Commit 5c65711f authored by Sebastian Meiling's avatar Sebastian Meiling Committed by GitHub
Browse files

Merge pull request #7612 from bergzand/gcoap/core-link-fix

gcoap: fix resource separator inserting
parents 4357b93b e7df5135
No related branches found
No related tags found
No related merge requests found
......@@ -827,7 +827,7 @@ int gcoap_get_resource_list(void *buf, size_t maxlen, uint8_t cf)
if ((pos + path_len + 3) > maxlen) {
break;
}
if (i) {
if (pos) {
out[pos++] = ',';
}
out[pos++] = '<';
......@@ -836,7 +836,7 @@ int gcoap_get_resource_list(void *buf, size_t maxlen, uint8_t cf)
out[pos++] = '>';
}
else {
pos += (i) ? 3 : 2;
pos += (pos) ? 3 : 2;
pos += path_len;
}
++resource;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment