Skip to content

Commit

Permalink
Fix rewriting path wrong in HookFileSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
TheIndra55 committed Mar 8, 2023
1 parent 8a70b8e commit f326197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game/hookfilesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class HookFileSystem : public cdc::FileSystem
if (strncmp(path, "\\", 1) == 0)
{
// move string 4 bytes
memmove(path + 4, path, sizeof(path) - 4);
memmove(path + 4, path, _MAX_PATH - 4);
strncpy(path, "mods", 4);
}

Expand Down

0 comments on commit f326197

Please sign in to comment.