From: Christian Grothoff Date: Sun, 22 Jan 2017 13:13:42 +0000 (+0100) Subject: fix buffer size X-Git-Tag: taler-0.2.1~377 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=07bb7990c58e87d2dc73dbf74961722180e044cc;p=oweals%2Fgnunet.git fix buffer size --- diff --git a/src/util/common_logging.c b/src/util/common_logging.c index 1da406753..7d5b50b8b 100644 --- a/src/util/common_logging.c +++ b/src/util/common_logging.c @@ -1164,7 +1164,7 @@ GNUNET_h2s (const struct GNUNET_HashCode * hc) const char * GNUNET_sh2s (const struct GNUNET_ShortHashCode *shc) { - static char buf[32]; + static char buf[64]; GNUNET_STRINGS_data_to_string (shc, sizeof (*shc), diff --git a/src/util/strings.c b/src/util/strings.c index 46eab856f..2b51d3e52 100644 --- a/src/util/strings.c +++ b/src/util/strings.c @@ -1354,7 +1354,7 @@ GNUNET_STRINGS_to_address_ip (const char *addr, /** - * Parse an address given as a string into a + * Parse an address given as a string into a * `struct sockaddr`. * * @param addr the address @@ -1372,7 +1372,7 @@ GNUNET_STRINGS_parse_socket_addr (const char *addr, *af = AF_UNSPEC; if ('[' == *addr) { - /* IPv6 */ + /* IPv6 */ *sa = GNUNET_malloc (sizeof (struct sockaddr_in6)); if (GNUNET_OK != GNUNET_STRINGS_to_address_ipv6 (cp,