mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-12 05:11:45 +00:00
- fixed: strbin did not check for a terminating 0-character right after an escaping backslash.
This commit is contained in:
parent
028ce8e636
commit
1b67418a1f
1 changed files with 2 additions and 2 deletions
|
@ -609,7 +609,7 @@ int strbin (char *str)
|
|||
while ( (c = *p++) ) {
|
||||
if (c != '\\') {
|
||||
*str++ = c;
|
||||
} else {
|
||||
} else if (*p != 0) {
|
||||
switch (*p) {
|
||||
case 'a':
|
||||
*str++ = '\a';
|
||||
|
@ -712,7 +712,7 @@ FString strbin1 (const char *start)
|
|||
while ( (c = *p++) ) {
|
||||
if (c != '\\') {
|
||||
result << c;
|
||||
} else {
|
||||
} else if (*p) {
|
||||
switch (*p) {
|
||||
case 'a':
|
||||
result << '\a';
|
||||
|
|
Loading…
Reference in a new issue