Skip to content

Commit

Permalink
Fix null pointer dereference crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Epicpkmn11 committed Oct 16, 2022
1 parent 8137a76 commit 9eea90b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arm9/src/titlemenu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 9eea90b

Please sign in to comment.