mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2025-02-06 03:33:03 +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;
|
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