theoretically, file names might be longer than 1024 bytes, use MAX_PATH
authorChristian Grothoff <christian@grothoff.org>
Mon, 26 Sep 2016 14:17:40 +0000 (14:17 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 26 Sep 2016 14:17:40 +0000 (14:17 +0000)
src/util/bio.c

index 3de96bb4debff7a54668033bf6e45c3f17c3ea50..c3642c6483c8787980a46ed444b71eb4bd49fd4e 100644 (file)
@@ -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);