- fixed: strbin did not check for a terminating 0-character right after an escaping backslash.

This commit is contained in:
Christoph Oelckers 2020-12-11 11:22:07 +01:00
parent 04329981ec
commit 423fe60080
1 changed files with 2 additions and 2 deletions

View File

@ -590,7 +590,7 @@ int strbin (char *str)
while ( (c = *p++) ) {
if (c != '\\') {
*str++ = c;
} else {
} else if (*p != 0) {
switch (*p) {
case 'a':
*str++ = '\a';
@ -693,7 +693,7 @@ FString strbin1 (const char *start)
while ( (c = *p++) ) {
if (c != '\\') {
result << c;
} else {
} else if (*p) {
switch (*p) {
case 'a':
result << '\a';