mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-11-25 04:35:10 +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
5
misc.c
5
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')
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue