Skip to content

Commit

Permalink
coap-debug.c: remove quotation when printing Unix domain socket paths…
Browse files Browse the repository at this point in the history
…, see #1460
  • Loading branch information
anyc authored and mrdeep1 committed Jul 10, 2024
1 parent a1a16f3 commit 72045d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coap_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ coap_print_addr(const coap_address_t *addr, unsigned char *buf, size_t len) {
#endif /* COAP_IPV6_SUPPORT */
#if COAP_AF_UNIX_SUPPORT
case AF_UNIX:
snprintf((char *)buf, len, "'%s'", addr->addr.cun.sun_path);
snprintf((char *)buf, len, "%s", addr->addr.cun.sun_path);
break;
#endif /* COAP_AF_UNIX_SUPPORT */
default:
Expand Down Expand Up @@ -431,7 +431,7 @@ coap_print_ip_addr(const coap_address_t *addr, char *buf, size_t len) {
#endif /* COAP_IPV6_SUPPORT */
#if COAP_AF_UNIX_SUPPORT
case AF_UNIX:
snprintf(buf, len, "'%s'", addr->addr.cun.sun_path);
snprintf(buf, len, "%s", addr->addr.cun.sun_path);
return buf;
#endif /* COAP_AF_UNIX_SUPPORT */
default:
Expand Down

0 comments on commit 72045d8

Please sign in to comment.