diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-01-22 14:13:42 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-01-22 14:13:42 +0100 |
commit | 07bb7990c58e87d2dc73dbf74961722180e044cc (patch) | |
tree | 475ac4ac299e17d97064de49e0a6b33ab7a66d62 | |
parent | 568dcc7b48238a0df22707dadb93f0f5b62c06b7 (diff) |
fix buffer size
-rw-r--r-- | src/util/common_logging.c | 2 | ||||
-rw-r--r-- | src/util/strings.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/util/common_logging.c b/src/util/common_logging.c index 1da4067537..7d5b50b8b9 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 46eab856f0..2b51d3e523 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, |