MFC: 1.46: Don't go beyond the provided string when parsing `\'.
PR: bin/99985 Approved by: re (hrs)
This commit is contained in:
parent
93cf3d7327
commit
cc327e7e5e
@ -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…
x
Reference in New Issue
Block a user