src/cdrom/linux/SDL_syscdrom.c
changeset 2018 41a5fc1825b9
parent 1895 c121d94672cb
child 2669 e27bdcc80744
equal deleted inserted replaced
2017:df06e6eb65c6 2018:41a5fc1825b9
   220 
   220 
   221             /* Handle "supermount" filesystem mounts */
   221             /* Handle "supermount" filesystem mounts */
   222             if (SDL_strcmp(mnt_type, MNTTYPE_SUPER) == 0) {
   222             if (SDL_strcmp(mnt_type, MNTTYPE_SUPER) == 0) {
   223                 tmp = SDL_strstr(mntent->mnt_opts, "fs=");
   223                 tmp = SDL_strstr(mntent->mnt_opts, "fs=");
   224                 if (tmp) {
   224                 if (tmp) {
   225                     SDL_free(mnt_type);
   225                     SDL_stack_free(mnt_type);
   226                     mnt_type = SDL_strdup(tmp + SDL_strlen("fs="));
   226                     mnt_type = SDL_strdup(tmp + SDL_strlen("fs="));
   227                     if (mnt_type) {
   227                     if (mnt_type) {
   228                         tmp = SDL_strchr(mnt_type, ',');
   228                         tmp = SDL_strchr(mnt_type, ',');
   229                         if (tmp) {
   229                         if (tmp) {
   230                             *tmp = '\0';
   230                             *tmp = '\0';
   231                         }
   231                         }
   232                     }
   232                     }
   233                 }
   233                 }
   234                 tmp = SDL_strstr(mntent->mnt_opts, "dev=");
   234                 tmp = SDL_strstr(mntent->mnt_opts, "dev=");
   235                 if (tmp) {
   235                 if (tmp) {
   236                     SDL_free(mnt_dev);
   236                     SDL_stack_free(mnt_dev);
   237                     mnt_dev = SDL_strdup(tmp + SDL_strlen("dev="));
   237                     mnt_dev = SDL_strdup(tmp + SDL_strlen("dev="));
   238                     if (mnt_dev) {
   238                     if (mnt_dev) {
   239                         tmp = SDL_strchr(mnt_dev, ',');
   239                         tmp = SDL_strchr(mnt_dev, ',');
   240                         if (tmp) {
   240                         if (tmp) {
   241                             *tmp = '\0';
   241                             *tmp = '\0';