aboutsummaryrefslogtreecommitdiffstats
path: root/P2
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-11-02 19:07:03 -0600
committerMatt Strapp <strap012@umn.edu>2020-11-02 19:07:03 -0600
commit3cb9784513b22e6fe52adcd43d39ad4155f27eb6 (patch)
tree6318c57db03b52a932b0e72e61cb310e81ea5266 /P2
parentI'm stupid (diff)
downloadcsci4061-3cb9784513b22e6fe52adcd43d39ad4155f27eb6.tar
csci4061-3cb9784513b22e6fe52adcd43d39ad4155f27eb6.tar.gz
csci4061-3cb9784513b22e6fe52adcd43d39ad4155f27eb6.tar.bz2
csci4061-3cb9784513b22e6fe52adcd43d39ad4155f27eb6.tar.lz
csci4061-3cb9784513b22e6fe52adcd43d39ad4155f27eb6.tar.xz
csci4061-3cb9784513b22e6fe52adcd43d39ad4155f27eb6.tar.zst
csci4061-3cb9784513b22e6fe52adcd43d39ad4155f27eb6.zip
help
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);