From 1cf17ce5cbcb3bbf321dc4e605fcf28f8ac67325 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 26 Sep 2016 14:17:40 +0000 Subject: [PATCH] theoretically, file names might be longer than 1024 bytes, use MAX_PATH --- src/util/bio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1