summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-09-23 00:52:57 +0800
committerSebastian Rasmussen <sebras@gmail.com>2016-09-23 00:54:32 +0800
commit446097f97b71ce20fa8d1e45e070f2e62676003e (patch)
treea1cbf629a26eef7800c30b105bbaede16bcd1dac /platform
parentcfe8f35bca61056363368c343be36812abde0a06 (diff)
downloadmupdf-446097f97b71ce20fa8d1e45e070f2e62676003e.tar.xz
Bug 697021: Count used string space correctly.
Account for used space before comparison, not after.
Diffstat (limited to 'platform')
-rw-r--r--platform/x11/jstest_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/x11/jstest_main.c b/platform/x11/jstest_main.c
index 768d67f1..13c3a0a3 100644
--- a/platform/x11/jstest_main.c
+++ b/platform/x11/jstest_main.c
@@ -201,7 +201,7 @@ my_getline(FILE *file)
*d++ = (char)c;
c = fgetc(file);
}
- while (c >= 32 && space--);
+ while (c >= 32 && --space);
/* If we ran out of space, skip the rest of the line */
if (space == 0)