diff --git a/server.c b/server.c index b3c721e..9c66d2e 100644 --- a/server.c +++ b/server.c @@ -136,7 +136,7 @@ void readData(int clientSocket) { printf("Got stuff: %i\n", msgSize); printf("%s\n", buffer); } - } while (msgSize == 256); + } while (msgSize == BUFFER_LENGTH); printf("Data received: %s\n", buffer); }