diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-09-23 00:52:57 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2016-09-23 00:54:32 +0800 |
commit | 446097f97b71ce20fa8d1e45e070f2e62676003e (patch) | |
tree | a1cbf629a26eef7800c30b105bbaede16bcd1dac /platform | |
parent | cfe8f35bca61056363368c343be36812abde0a06 (diff) | |
download | mupdf-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.c | 2 |
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) |