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
@ -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 New Issue
Block a user