From: Roland McGrath Date: Tue, 12 Dec 1995 04:24:17 +0000 (+0000) Subject: (collapse_continuations): Fix skipping of trailing \s so it can never X-Git-Tag: 3.74.1~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76d037cb95c26a4a3c5ac7ba34c94cae2be7baa1;p=thirdparty%2Fmake.git (collapse_continuations): Fix skipping of trailing \s so it can never dereference before the beginning of the array. --- diff --git a/misc.c b/misc.c index a7e9e711..88dfd60c 100644 --- a/misc.c +++ b/misc.c @@ -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') {