src/cdrom/qnx/SDL_syscdrom.c
changeset 1482 141528317f4f
parent 1402 d910939febfa
child 1635 92947e3a18db
equal deleted inserted replaced
1481:deb22b9fe970 1482:141528317f4f
   168     SDLcdrom = SDL_getenv("SDL_CDROM");	/* ':' separated list of devices */
   168     SDLcdrom = SDL_getenv("SDL_CDROM");	/* ':' separated list of devices */
   169     if ( SDLcdrom != NULL )
   169     if ( SDLcdrom != NULL )
   170     {
   170     {
   171         char *cdpath, *delim;
   171         char *cdpath, *delim;
   172 	size_t len = SDL_strlen(SDLcdrom)+1;
   172 	size_t len = SDL_strlen(SDLcdrom)+1;
   173         cdpath = SDL_stack_alloc(len);
   173         cdpath = SDL_stack_alloc(char, len);
   174         if (cdpath != NULL)
   174         if (cdpath != NULL)
   175         {
   175         {
   176             SDL_strlcpy(cdpath, SDLcdrom, len);
   176             SDL_strlcpy(cdpath, SDLcdrom, len);
   177             SDLcdrom = cdpath;
   177             SDLcdrom = cdpath;
   178             do {
   178             do {