X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Futil%2Fbio.c;h=62f4904f7d19367ab973161cbbaaf6e56551f045;hb=82e765caeb53a1de54676738169dab98ca76c47e;hp=c3642c6483c8787980a46ed444b71eb4bd49fd4e;hpb=1cf17ce5cbcb3bbf321dc4e605fcf28f8ac67325;p=oweals%2Fgnunet.git diff --git a/src/util/bio.c b/src/util/bio.c index c3642c648..62f4904f7 100644 --- a/src/util/bio.c +++ b/src/util/bio.c @@ -23,11 +23,18 @@ * @author Christian Grothoff */ #include "platform.h" -#include "gnunet_bio_lib.h" -#include "gnunet_disk_lib.h" +#include "gnunet_util_lib.h" #define LOG(kind,...) GNUNET_log_from (kind, "util",__VA_ARGS__) +#ifndef PATH_MAX +/** + * Assumed maximum path length (for source file names). + */ +#define PATH_MAX 4096 +#endif + + /** * Size for I/O buffers. */ @@ -205,7 +212,7 @@ GNUNET_BIO_read_fn (struct GNUNET_BIO_ReadHandle *h, void *result, size_t len) { - char what[MAX_PATH + 1024]; + char what[PATH_MAX + 1024]; GNUNET_snprintf (what, sizeof (what), "%s:%d", file, line); return GNUNET_BIO_read (h, what, result, len);