aboutsummaryrefslogtreecommitdiff
path: root/src/util/strings.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-01-22 14:13:42 +0100
committerChristian Grothoff <christian@grothoff.org>2017-01-22 14:13:42 +0100
commit07bb7990c58e87d2dc73dbf74961722180e044cc (patch)
tree475ac4ac299e17d97064de49e0a6b33ab7a66d62 /src/util/strings.c
parent568dcc7b48238a0df22707dadb93f0f5b62c06b7 (diff)
downloadgnunet-07bb7990c58e87d2dc73dbf74961722180e044cc.tar.gz
gnunet-07bb7990c58e87d2dc73dbf74961722180e044cc.zip
fix buffer size
Diffstat (limited to 'src/util/strings.c')
-rw-r--r--src/util/strings.c4
1 files changed, 2 insertions, 2 deletions
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,
1354 1354
1355 1355
1356/** 1356/**
1357 * Parse an address given as a string into a 1357 * Parse an address given as a string into a
1358 * `struct sockaddr`. 1358 * `struct sockaddr`.
1359 * 1359 *
1360 * @param addr the address 1360 * @param addr the address
@@ -1372,7 +1372,7 @@ GNUNET_STRINGS_parse_socket_addr (const char *addr,
1372 *af = AF_UNSPEC; 1372 *af = AF_UNSPEC;
1373 if ('[' == *addr) 1373 if ('[' == *addr)
1374 { 1374 {
1375 /* IPv6 */ 1375 /* IPv6 */
1376 *sa = GNUNET_malloc (sizeof (struct sockaddr_in6)); 1376 *sa = GNUNET_malloc (sizeof (struct sockaddr_in6));
1377 if (GNUNET_OK != 1377 if (GNUNET_OK !=
1378 GNUNET_STRINGS_to_address_ipv6 (cp, 1378 GNUNET_STRINGS_to_address_ipv6 (cp,