Skip to content

Commit

Permalink
win32: use standard memmove function
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamhm committed Jul 15, 2022
1 parent 3c8d96b commit e4eae33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,7 @@ static int push_link_target(lua_State * L)
if (tsize < size) {
#ifdef _WIN32
if (tsize > 4 && strncmp(target, "\\\\?\\", 4) == 0) {
memmove_s(target, tsize - 3, target + 4, tsize - 3);
memmove(target, target + 4, tsize - 3);
tsize -= 4;
}
#endif
Expand Down

0 comments on commit e4eae33

Please sign in to comment.