Skip to content

Commit 250a3b3

Browse files
committed
test_7
1 parent 272af6d commit 250a3b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ bool load_config(char configPath[PATH_MAX], struct config_params *p, struct erro
638638
GetCurrentDirectoryA(PATH_MAX - 1 - strlen(configPath), newPath);
639639
strcat(newPath, "\\");
640640
strcat(newPath, configPath);
641-
memset(configPath, 0, sizeof(configPath));
641+
memset(configPath, 0, PATH_MAX);
642642
strcpy(configPath, newPath);
643643
}
644644
#endif

0 commit comments

Comments
 (0)