From 9ed12b0f07edb342aaff21c130d325fd158a9d5b Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 25 Apr 2014 15:40:32 +0000 Subject: (svn r26509) -Codechange: replace strdup with stredup (the latter ensures the return is not NULL) --- src/music/extmidi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/music/extmidi.cpp') diff --git a/src/music/extmidi.cpp b/src/music/extmidi.cpp index 6bfc990e5..919f689e0 100644 --- a/src/music/extmidi.cpp +++ b/src/music/extmidi.cpp @@ -45,7 +45,7 @@ const char *MusicDriver_ExtMidi::Start(const char * const * parm) const char *command = GetDriverParam(parm, "cmd"); if (StrEmpty(command)) command = EXTERNAL_PLAYER; - this->command = strdup(command); + this->command = stredup(command); this->song[0] = '\0'; this->pid = -1; return NULL; -- cgit v1.2.3-54-g00ecf