aboutsummaryrefslogtreecommitdiffstats
path: root/P2/lib
diff options
context:
space:
mode:
authorAndrea Smith <smit9523@umn.edu>2020-10-24 12:14:43 -0500
committerAndrea Smith <smit9523@umn.edu>2020-10-24 12:14:43 -0500
commit12cd60a631af4d70ff0a033a7473a58706706781 (patch)
tree49d4919c0fb7c6d41ee4e397aae1d707afde4ca7 /P2/lib
parentsendChunkData (diff)
downloadcsci4061-12cd60a631af4d70ff0a033a7473a58706706781.tar
csci4061-12cd60a631af4d70ff0a033a7473a58706706781.tar.gz
csci4061-12cd60a631af4d70ff0a033a7473a58706706781.tar.bz2
csci4061-12cd60a631af4d70ff0a033a7473a58706706781.tar.lz
csci4061-12cd60a631af4d70ff0a033a7473a58706706781.tar.xz
csci4061-12cd60a631af4d70ff0a033a7473a58706706781.tar.zst
csci4061-12cd60a631af4d70ff0a033a7473a58706706781.zip
sendChunkData
Diffstat (limited to '')
-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 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) {
}
}