From: Bart Polot Date: Thu, 19 Dec 2013 14:12:04 +0000 (+0000) Subject: - use write to allow binary data as well X-Git-Tag: initial-import-from-subversion-38251~5302 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a41debd9d80624723be7de89899c8c2b7ebb9296;p=oweals%2Fgnunet.git - use write to allow binary data as well --- diff --git a/src/mesh/gnunet-mesh.c b/src/mesh/gnunet-mesh.c index 824835260..f27e27428 100644 --- 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; }