aboutsummaryrefslogtreecommitdiffstats
path: root/P2
diff options
context:
space:
mode:
Diffstat (limited to 'P2')
-rw-r--r--P2/lib/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/P2/lib/utils.c b/P2/lib/utils.c
index a081a88..d4f3880 100644
--- a/P2/lib/utils.c
+++ b/P2/lib/utils.c
@@ -53,8 +53,8 @@ void sendChunkData(char *inputFile, int nMappers) {
// TODO! help
int i = 1023;
while(validChar(message.msgText[i])) {
- message.msgText[i] == '\0';
- i--;
+ message.msgText[i--] == '\0';
+ // i--;
// printf("%d\n", i);
}
fseek(file, (i - 1023), SEEK_CUR);