From e8fcc84d06863bb0828e1a0e7eafc722f23c26a3 Mon Sep 17 00:00:00 2001 From: Andrea Smith Date: Tue, 3 Nov 2020 12:38:35 -0600 Subject: AAAAA --- P2/lib/utils.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'P2') diff --git a/P2/lib/utils.c b/P2/lib/utils.c index 788a128..da250dc 100644 --- a/P2/lib/utils.c +++ b/P2/lib/utils.c @@ -27,12 +27,12 @@ char *getChunkData(int mapperID) { // printf("%d\n", strncmp("END", message.msgText, 3)); if (strncmp("END", message.msgText, 4) == 0) return NULL; - char* value = message.msgText; - return value; + // char* value = message.msgText; + // return value; // DEBUG! malloc a buffer/return - // char* value = malloc(1024); // chunkSize or MSGSIZE? - // return value; + char* value = malloc(1024); // chunkSize or MSGSIZE? + return value; // Free memory // printf("%s\n", message.msgText); -- cgit v1.2.3