mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2025-02-06 11:35:08 +00:00
(collapse_continuations): Fix skipping of trailing \s so it can never
dereference before the beginning of the array.
This commit is contained in:
parent
dfdf1bec21
commit
76d037cb95
1 changed files with 2 additions and 3 deletions
3
misc.c
3
misc.c
|
@ -50,8 +50,7 @@ collapse_continuations (line)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
out = in;
|
out = in;
|
||||||
if (out > line)
|
while (out > line && out[-1] == '\\')
|
||||||
while (out[-1] == '\\')
|
|
||||||
--out;
|
--out;
|
||||||
|
|
||||||
while (*in != '\0')
|
while (*in != '\0')
|
||||||
|
|
Loading…
Reference in a new issue