Skip to content

Commit

Permalink
fixup! examples/gcoap[_dtls]: input full URI for request and proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian18 committed Apr 30, 2024
1 parent 0d4caf9 commit 209aa7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/gcoap/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ static int _uristr2remote(const char *uri, sock_udp_ep_t *remote, const char **p
DEBUG("'%s' is not a valid URI\n", uri);
return 1;
}
strncpy(buf, urip.host, urip.host_len);
memcpy(buf, urip.host, urip.host_len);
buf[urip.host_len] = '\0';
if (urip.port_str_len) {
strcat(buf, ":");
Expand Down

0 comments on commit 209aa7b

Please sign in to comment.