From: gumartinm Date: Sun, 23 Dec 2012 18:48:37 +0000 (+0100) Subject: Fixed error in sizeof for unsigned char. X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=da2c677c7aab08483fd3b4e086854dd3a5ce0def;p=JavaTCPFork%2F.git Fixed error in sizeof for unsigned char. --- diff --git a/Daemon/javafork.c b/Daemon/javafork.c index 86a1062..7b0602d 100644 --- a/Daemon/javafork.c +++ b/Daemon/javafork.c @@ -287,7 +287,7 @@ void *serverThread (void * arg) /*respectively*/ uint32_t commandLength = 0; /*Store the command length*/ unsigned char *command = NULL; /*The command sent by the client as bytes, to be executed by this process*/ - unsigned char buffer[sizeof(uint32_t)]; /*This buffer is intended to store the data received from the client*/ + unsigned char buffer[sizeof(unsigned char)]; /*This buffer is intended to store the data received from the client*/ socket = (int) arg;