diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-09-26 14:17:40 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-09-26 14:17:40 +0000 |
commit | 1cf17ce5cbcb3bbf321dc4e605fcf28f8ac67325 (patch) | |
tree | 55cd3b2dabea0b7c8b2471bb09e584e07eac9f41 /src/util/bio.c | |
parent | 93ca0372a0994370482c7efbdd15a7ddb309b0c5 (diff) | |
download | gnunet-1cf17ce5cbcb3bbf321dc4e605fcf28f8ac67325.tar.gz gnunet-1cf17ce5cbcb3bbf321dc4e605fcf28f8ac67325.zip |
theoretically, file names might be longer than 1024 bytes, use MAX_PATH
Diffstat (limited to 'src/util/bio.c')
-rw-r--r-- | src/util/bio.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
205 | void *result, | 205 | void *result, |
206 | size_t len) | 206 | size_t len) |
207 | { | 207 | { |
208 | char what[1024]; | 208 | char what[MAX_PATH + 1024]; |
209 | 209 | ||
210 | GNUNET_snprintf (what, sizeof (what), "%s:%d", file, line); | 210 | GNUNET_snprintf (what, sizeof (what), "%s:%d", file, line); |
211 | return GNUNET_BIO_read (h, what, result, len); | 211 | return GNUNET_BIO_read (h, what, result, len); |