aboutsummaryrefslogtreecommitdiffstats
path: root/P2/lib
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-11-02 19:04:07 -0600
committerMatt Strapp <strap012@umn.edu>2020-11-02 19:04:07 -0600
commit2529e2dbe6b2da4d59f617ff853defe690893884 (patch)
tree7ad189727be8581418dd76f54df788be81418a5f /P2/lib
parentMerge branch 'Branch-2' (diff)
downloadcsci4061-2529e2dbe6b2da4d59f617ff853defe690893884.tar
csci4061-2529e2dbe6b2da4d59f617ff853defe690893884.tar.gz
csci4061-2529e2dbe6b2da4d59f617ff853defe690893884.tar.bz2
csci4061-2529e2dbe6b2da4d59f617ff853defe690893884.tar.lz
csci4061-2529e2dbe6b2da4d59f617ff853defe690893884.tar.xz
csci4061-2529e2dbe6b2da4d59f617ff853defe690893884.tar.zst
csci4061-2529e2dbe6b2da4d59f617ff853defe690893884.zip
I'm stupid
Diffstat (limited to 'P2/lib')
-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);