Use only safe string functions
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401383
This commit is contained in:
parent
a81db3ea34
commit
1da8cb0143
60 changed files with 223 additions and 263 deletions
|
@ -94,13 +94,12 @@ for (i=0; i<SDL_numcds; i++)
|
|||
{
|
||||
msp.ulNumber = i+1;
|
||||
mciSendCommand(0,MCI_SYSINFO, MCI_SYSINFO_NAME | MCI_WAIT,&msp, 0);
|
||||
SDL_cdlist[i] = (char *)SDL_malloc(SDL_strlen(SysInfoRet)+1);
|
||||
SDL_cdlist[i] = SDL_strdup(SysInfoRet);
|
||||
if ( SDL_cdlist[i] == NULL )
|
||||
{
|
||||
SDL_OutOfMemory();
|
||||
return(-1);
|
||||
}
|
||||
SDL_strcpy(SDL_cdlist[i], SysInfoRet);
|
||||
}
|
||||
return(0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue