diff options
Diffstat (limited to 'P2')
-rw-r--r-- | P2/lib/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/P2/lib/utils.c b/P2/lib/utils.c index b15a7c8..dffade8 100644 --- a/P2/lib/utils.c +++ b/P2/lib/utils.c @@ -15,7 +15,7 @@ void sendChunkData(char *inputFile, int nMappers) { FILE *fptr = fopen(inputFile, "r"); // construct chunks of 1024 bytes - while(fgets(msgText, chunkSize, fptr)) { + while(fgets(message, chunkSize, fptr) != EOF) { } } |