From 2529e2dbe6b2da4d59f617ff853defe690893884 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Mon, 2 Nov 2020 19:04:07 -0600 Subject: I'm stupid --- P2/lib/utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'P2/lib') 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); -- cgit v1.2.3