projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
service_new: ready_confirm_fd
[oweals/gnunet.git]
/
src
/
util
/
bio.c
diff --git
a/src/util/bio.c
b/src/util/bio.c
index c3642c6483c8787980a46ed444b71eb4bd49fd4e..62f4904f7d19367ab973161cbbaaf6e56551f045 100644
(file)
--- a/
src/util/bio.c
+++ b/
src/util/bio.c
@@
-23,11
+23,18
@@
* @author Christian Grothoff
*/
#include "platform.h"
* @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__)
#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.
*/
/**
* Size for I/O buffers.
*/
@@
-205,7
+212,7
@@
GNUNET_BIO_read_fn (struct GNUNET_BIO_ReadHandle *h,
void *result,
size_t len)
{
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);
GNUNET_snprintf (what, sizeof (what), "%s:%d", file, line);
return GNUNET_BIO_read (h, what, result, len);