mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-10-11 00:28:20 +03:00
ShString: do not copy string if dst == src
This commit is contained in:
@@ -126,7 +126,8 @@ void FillString() {
|
||||
int i;
|
||||
|
||||
for (i = 0; i < cnt; i++) {
|
||||
v_strcpy(st -1, v_str(src));
|
||||
if (st - 1 != src)
|
||||
v_strcpy(st -1, v_str(src));
|
||||
}
|
||||
|
||||
DEBUG_COMMAND("ShString.FillString: %d,%d,%d,%d:\n", st, cnt, src, p4);
|
||||
|
||||
Reference in New Issue
Block a user