coap-debug.c: remove quotation when printing Unix domain socket paths, see #1460

This commit is contained in:
Mario Kicherer authored and Jon Shallow committed 2024-07-10 17:45:51 +01:00
1 parent a1a16f3f5a
commit 72045d89bd
1 file changed
+2 -2
+2 -2
View File
@@ -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:
@@ -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: