aboutsummaryrefslogtreecommitdiffstats
path: root/P1/src/mapper.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--P1/src/mapper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/P1/src/mapper.c b/P1/src/mapper.c
index 41de345..8ba14a1 100644
--- a/P1/src/mapper.c
+++ b/P1/src/mapper.c
@@ -108,14 +108,14 @@ void writeIntermediateDS() {
while(tempNode != NULL) {
// Get string of 1's associated with the word
- char ones[100]= "";
+ char ones[BUFFSIZE]= "";
tempNode2 = tempNode -> value;
while(tempNode2 != NULL) {
strcat(ones, "1 ");
tempNode2 = tempNode2 -> next;
}
// Shove word and ones in a file named word.txt
- char filename[150] = "";
+ char filename[BUFFSIZE] = "";
//sprintf(filename, "output/MapOut/Map_%d/%s.txt", mapperID, tempNode -> key);
sprintf(filename, "%s/%s.txt", mapOutDir, tempNode -> key);
FILE* fptr = fopen(filename, "w");