Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 169477 | Differences between
and this patch

Collapse All | Expand All

(-)SDL-1.2.11.orig/src/cdrom/linux/SDL_syscdrom.c (-2 / +2 lines)
Lines 216-237 Link Here
216
216
217
			/* Handle "supermount" filesystem mounts */
217
			/* Handle "supermount" filesystem mounts */
218
			if ( SDL_strcmp(mnt_type, MNTTYPE_SUPER) == 0 ) {
218
			if ( SDL_strcmp(mnt_type, MNTTYPE_SUPER) == 0 ) {
219
				tmp = SDL_strstr(mntent->mnt_opts, "fs=");
219
				tmp = SDL_strstr(mntent->mnt_opts, "fs=");
220
				if ( tmp ) {
220
				if ( tmp ) {
221
					SDL_free(mnt_type);
221
					SDL_stack_free(mnt_type);
222
					mnt_type = SDL_strdup(tmp + SDL_strlen("fs="));
222
					mnt_type = SDL_strdup(tmp + SDL_strlen("fs="));
223
					if ( mnt_type ) {
223
					if ( mnt_type ) {
224
						tmp = SDL_strchr(mnt_type, ',');
224
						tmp = SDL_strchr(mnt_type, ',');
225
						if ( tmp ) {
225
						if ( tmp ) {
226
							*tmp = '\0';
226
							*tmp = '\0';
227
						}
227
						}
228
					}
228
					}
229
				}
229
				}
230
				tmp = SDL_strstr(mntent->mnt_opts, "dev=");
230
				tmp = SDL_strstr(mntent->mnt_opts, "dev=");
231
				if ( tmp ) {
231
				if ( tmp ) {
232
					SDL_free(mnt_dev);
232
					SDL_stack_free(mnt_dev);
233
					mnt_dev = SDL_strdup(tmp + SDL_strlen("dev="));
233
					mnt_dev = SDL_strdup(tmp + SDL_strlen("dev="));
234
					if ( mnt_dev ) {
234
					if ( mnt_dev ) {
235
						tmp = SDL_strchr(mnt_dev, ',');
235
						tmp = SDL_strchr(mnt_dev, ',');
236
						if ( tmp ) {
236
						if ( tmp ) {
237
							*tmp = '\0';
237
							*tmp = '\0';

Return to bug 169477