mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-22 02:53:06 +00:00
win32: use standard memmove function
This commit is contained in:
@@ -1094,7 +1094,7 @@ static int push_link_target(lua_State * L)
|
|||||||
if (tsize < size) {
|
if (tsize < size) {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
if (tsize > 4 && strncmp(target, "\\\\?\\", 4) == 0) {
|
if (tsize > 4 && strncmp(target, "\\\\?\\", 4) == 0) {
|
||||||
memmove_s(target, tsize - 3, target + 4, tsize - 3);
|
memmove(target, target + 4, tsize - 3);
|
||||||
tsize -= 4;
|
tsize -= 4;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user