From 282a742c73df50bceff03569011b0ee1ac871051 Mon Sep 17 00:00:00 2001 From: Mario Kicherer Date: Wed, 10 Jul 2024 18:07:16 +0200 Subject: [PATCH] coap-debug.c: remove quotation when printing Unix domain socket paths, see #1460 --- src/coap_debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coap_debug.c b/src/coap_debug.c index 6a905d7349..62f4d679ba 100644 --- a/src/coap_debug.c +++ b/src/coap_debug.c @@ -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: