mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 09:21:36 +00:00
CON qstrcpy: don't call strcpy() with identical source and destination quotes.
Thus making the identical source and destination quote number case into the expected no-op instead of being undefined behavior. git-svn-id: https://svn.eduke32.com/eduke32@3510 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
f6a577ff68
commit
9f843fb445
1 changed files with 2 additions and 1 deletions
|
@ -1985,6 +1985,7 @@ skip_check:
|
|||
break;
|
||||
case CON_QSTRCPY:
|
||||
if ((ScriptQuotes[i] == NULL || ScriptQuotes[j] == NULL)) goto nullquote;
|
||||
if (i != j)
|
||||
Bstrcpy(ScriptQuotes[i],ScriptQuotes[j]);
|
||||
break;
|
||||
case CON_CHANGESPRITESECT:
|
||||
|
|
Loading…
Reference in a new issue