From 76d037cb95c26a4a3c5ac7ba34c94cae2be7baa1 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 12 Dec 1995 04:24:17 +0000 Subject: (collapse_continuations): Fix skipping of trailing \s so it can never dereference before the beginning of the array. --- misc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'misc.c') diff --git a/misc.c b/misc.c index a7e9e71..88dfd60 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') { -- cgit v1.2.3