diff options
Diffstat (limited to 'src/d_iwad.c')
-rw-r--r-- | src/d_iwad.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/d_iwad.c b/src/d_iwad.c index b81f6f6f..9cdffcb8 100644 --- a/src/d_iwad.c +++ b/src/d_iwad.c @@ -413,7 +413,7 @@ static char *CheckDirectoryHasIWAD(char *dir, char *iwadname) if (DirIsFile(dir, iwadname) && M_FileExists(dir)) { - return strdup(dir); + return M_StringDuplicate(dir); } // Construct the full path to the IWAD if it is located in @@ -421,7 +421,7 @@ static char *CheckDirectoryHasIWAD(char *dir, char *iwadname) if (!strcmp(dir, ".")) { - filename = strdup(iwadname); + filename = M_StringDuplicate(iwadname); } else { @@ -523,7 +523,7 @@ static void AddDoomWadPath(void) return; } - doomwadpath = strdup(doomwadpath); + doomwadpath = M_StringDuplicate(doomwadpath); // Add the initial directory @@ -640,7 +640,7 @@ char *D_FindWADByName(char *name) if (DirIsFile(iwad_dirs[i], name) && M_FileExists(iwad_dirs[i])) { - return strdup(iwad_dirs[i]); + return M_StringDuplicate(iwad_dirs[i]); } // Construct a string for the full path |