Fixed error in sizeof for unsigned char.
authorgumartinm <gu.martinm@gmail.com>
Sun, 23 Dec 2012 18:48:37 +0000 (19:48 +0100)
committergumartinm <gu.martinm@gmail.com>
Sun, 23 Dec 2012 18:48:37 +0000 (19:48 +0100)
Daemon/javafork.c

index 86a1062..7b0602d 100644 (file)
@@ -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;