diff options
author | Roland McGrath <roland@redhat.com> | 1995-12-12 04:24:17 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1995-12-12 04:24:17 +0000 |
commit | 76d037cb95c26a4a3c5ac7ba34c94cae2be7baa1 (patch) | |
tree | fc3f6cbff3985d5687b2a11f54623ea2be83d3d6 | |
parent | dfdf1bec21278ceb58295b88e22162b39d0de48b (diff) | |
download | gunmake-76d037cb95c26a4a3c5ac7ba34c94cae2be7baa1.tar.gz |
(collapse_continuations): Fix skipping of trailing \s so it can never
dereference before the beginning of the array.
-rw-r--r-- | misc.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -50,9 +50,8 @@ collapse_continuations (line) return; out = in; - if (out > line) - while (out[-1] == '\\') - --out; + while (out > line && out[-1] == '\\') + --out; while (*in != '\0') { |