projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d7b5b8
)
- use write to allow binary data as well
author
Bart Polot
<bart@net.in.tum.de>
Thu, 19 Dec 2013 14:12:04 +0000
(14:12 +0000)
committer
Bart Polot
<bart@net.in.tum.de>
Thu, 19 Dec 2013 14:12:04 +0000
(14:12 +0000)
src/mesh/gnunet-mesh.c
patch
|
blob
|
history
diff --git
a/src/mesh/gnunet-mesh.c
b/src/mesh/gnunet-mesh.c
index 8248352607c8c5f10fb785345ffb81813a2b38e0..f27e27428d797a4932ff42d057c361a188bab2c5 100644
(file)
--- a/
src/mesh/gnunet-mesh.c
+++ b/
src/mesh/gnunet-mesh.c
@@
-334,7
+334,7
@@
data_callback (void *cls,
len = ntohs (message->size) - sizeof (*message);
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Got %u bytes\n", len);
-
FPRINTF (stdout, "%.*s", len, (char *) &message[1]
);
+
write (1, (char *) &message[1], len
);
return GNUNET_OK;
}