From 21993ed6743e69e2d4c5d11cc86ca497e44cce35 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 20 Jun 2010 15:10:17 +0000 Subject: [PATCH] style --- src/util/common_logging.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/common_logging.c b/src/util/common_logging.c index dd490dda3..643d6f866 100644 --- a/src/util/common_logging.c +++ b/src/util/common_logging.c @@ -531,7 +531,7 @@ GNUNET_a2s (const struct sockaddr *addr, socklen_t addrlen) if (0 == ntohs (v4->sin_port)) return buf; strcat (buf, ":"); - sprintf (b2, "%u", ntohs (v4->sin_port)); + GNUNET_snprintf (b2, sizeof(b2), "%u", ntohs (v4->sin_port)); strcat (buf, b2); return buf; case AF_INET6: @@ -543,7 +543,7 @@ GNUNET_a2s (const struct sockaddr *addr, socklen_t addrlen) if (0 == ntohs (v6->sin6_port)) return &buf[1]; strcat (buf, "]:"); - sprintf (b2, "%u", ntohs (v6->sin6_port)); + GNUNET_snprintf (b2, sizeof(b2), "%u", ntohs (v6->sin6_port)); strcat (buf, b2); return buf; case AF_UNIX: -- 2.25.1