mirror of
https://github.com/rvtr/TDT.git
synced 2025-10-31 13:51:07 -04:00
Fix null pointer dereference crash
This commit is contained in:
parent
8137a76d20
commit
9eea90b130
@ -331,7 +331,7 @@ static void backup(Menu* m)
|
||||
//create subdirectories
|
||||
char backupPath[sizeof(BACKUP_PATH)];
|
||||
strcpy(backupPath, BACKUP_PATH);
|
||||
for (char *slash = strchr(backupPath, '/'); *slash; slash = strchr(slash + 1, '/'))
|
||||
for (char *slash = strchr(backupPath, '/'); slash; slash = strchr(slash + 1, '/'))
|
||||
{
|
||||
char temp = *slash;
|
||||
*slash = '\0';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user