aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--P2/lib/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/P2/lib/utils.c b/P2/lib/utils.c
index 1fa9611..7cc4d7c 100644
--- a/P2/lib/utils.c
+++ b/P2/lib/utils.c
@@ -52,7 +52,7 @@ void sendChunkData(char *inputFile, int nMappers) {
fseek(file, (i - 1023), SEEK_CUR);
message.msgType = (map++ % nMappers) + 1;
// printf("%s\n\n",message.msgText);
- msgsnd(msgid, &message, map, 0);
+ msgsnd(msgid, &message, MSGSIZE, 0);
}
for (int i = 1; i <= nMappers; i++) {