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