diff --git a/rott/rt_cfg.c b/rott/rt_cfg.c index 1e71a9e..122a715 100644 --- a/rott/rt_cfg.c +++ b/rott/rt_cfg.c @@ -1851,7 +1851,7 @@ void GetAlternatePath (char * tokenstr, AlternateInformation *info) if (!stricmp (token, tokenstr)) { GetTokenEOL (false); - info->path = strdup(name); + info->path = M_StringDuplicate(name); } } @@ -1877,7 +1877,7 @@ void GetAlternateFile (char * tokenstr, AlternateInformation *info) { #if (SHAREWARE == 0) info->avail = true; - info->file = strdup(token); + info->file = M_StringDuplicate(token); #else printf("Alternate file %s ignored.\n",token); info->file = ""; diff --git a/rott/rt_main.c b/rott/rt_main.c index a18a3a0..d726fc7 100644 --- a/rott/rt_main.c +++ b/rott/rt_main.c @@ -733,7 +733,7 @@ void SetupWads( void ) }else{ fread(buf,3,3,f);//is the 3 first letters RTL (RTC) if (((strstr(buf,"RTL") != 0)||strstr(buf,"RTC") != 0)) { - GameLevels.file = strdup(tempstr); + GameLevels.file = M_StringDuplicate(tempstr); GameLevels.avail++; buf = safe_realloc(buf, 32 + strlen(tempstr)); strcpy (buf,"Adding "); @@ -772,7 +772,7 @@ NoRTL:; }else{ fread(buf,3,3,f);//is the 3 first letters RTL (RTC) if (((strstr(buf,"RTL") != 0)||strstr(buf,"RTC") != 0)) { - BattleLevels.file = strdup(tempstr); + BattleLevels.file = M_StringDuplicate(tempstr); BattleLevels.avail++; buf = safe_realloc(buf, 32 + strlen(tempstr)); strcpy (buf,"Adding "); @@ -836,7 +836,7 @@ NoRTC:; if (*src != '\\') strcat (tempstr,"\\\0"); strcat (tempstr,RemoteSounds.file); - newargs [argnum++] = strdup(tempstr); + newargs [argnum++] = M_StringDuplicate(tempstr); } else { diff --git a/rott/rt_ted.c b/rott/rt_ted.c index 12aabf5..aa5724f 100644 --- a/rott/rt_ted.c +++ b/rott/rt_ted.c @@ -1648,7 +1648,7 @@ void GetMapFileName ( char * filename, size_t n ) void SetBattleMapFileName ( char * filename ) { BattleLevels.avail = true; - BattleLevels.file = strdup(filename); + BattleLevels.file = M_StringDuplicate(filename); } /*