kondrak / vkQuake2

id Software's Quake 2 v3.21 with mission packs and Vulkan support (Windows, Linux, macOS, FreeBSD, Raspberry Pi 4)
GNU General Public License v2.0
896 stars 90 forks source link

Update sv_init.c #148

Closed robertpravor closed 1 year ago

robertpravor commented 2 years ago

Fix the (((not reproducible))) bug from https://githubmemory.com/repo/kondrak/vkQuake2/issues/140 Also, don't close issue that you do not understand...

tomgreen66 commented 1 year ago

Was intrigued with this error - seems strcpy into itself is not guaranteed to be in any particular order, for this memmove might suffice.

memmove(level, level+1, strlen(level))