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