- use write to allow binary data as well
authorBart Polot <bart@net.in.tum.de>
Thu, 19 Dec 2013 14:12:04 +0000 (14:12 +0000)
committerBart Polot <bart@net.in.tum.de>
Thu, 19 Dec 2013 14:12:04 +0000 (14:12 +0000)
src/mesh/gnunet-mesh.c

index 8248352607c8c5f10fb785345ffb81813a2b38e0..f27e27428d797a4932ff42d057c361a188bab2c5 100644 (file)
@@ -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;
 }