From: Christian Grothoff Date: Mon, 26 Sep 2016 14:17:40 +0000 (+0000) Subject: theoretically, file names might be longer than 1024 bytes, use MAX_PATH X-Git-Tag: initial-import-from-subversion-38251~202 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1cf17ce5cbcb3bbf321dc4e605fcf28f8ac67325;p=oweals%2Fgnunet.git theoretically, file names might be longer than 1024 bytes, use MAX_PATH --- diff --git a/src/util/bio.c b/src/util/bio.c index 3de96bb4d..c3642c648 100644 --- a/src/util/bio.c +++ b/src/util/bio.c @@ -205,7 +205,7 @@ GNUNET_BIO_read_fn (struct GNUNET_BIO_ReadHandle *h, void *result, size_t len) { - char what[1024]; + char what[MAX_PATH + 1024]; GNUNET_snprintf (what, sizeof (what), "%s:%d", file, line); return GNUNET_BIO_read (h, what, result, len);