mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +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,7 +1985,8 @@ skip_check:
|
|||
break;
|
||||
case CON_QSTRCPY:
|
||||
if ((ScriptQuotes[i] == NULL || ScriptQuotes[j] == NULL)) goto nullquote;
|
||||
Bstrcpy(ScriptQuotes[i],ScriptQuotes[j]);
|
||||
if (i != j)
|
||||
Bstrcpy(ScriptQuotes[i],ScriptQuotes[j]);
|
||||
break;
|
||||
case CON_CHANGESPRITESECT:
|
||||
if ((unsigned)i >= MAXSPRITES)
|
||||
|
|
Loading…
Reference in a new issue