mirror of
https://github.com/opnsense/src.git
synced 2026-04-27 00:58:36 -04:00
Don't go beyond the provided string when parsing the `\' character.
PR: bin/99985 Submitted by: Nate Eldredge MFC after: 3 days
This commit is contained in:
parent
a29721a8cb
commit
93f4bf61d4
1 changed files with 4 additions and 2 deletions
|
|
@ -260,8 +260,10 @@ brk_string(ArgArray *aa, const char str[], Boolean expand)
|
|||
}
|
||||
} else {
|
||||
*arg++ = str[0];
|
||||
++str;
|
||||
*arg++ = str[0];
|
||||
if (str[1] != '\0') {
|
||||
++str;
|
||||
*arg++ = str[0];
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Reference in a new issue