freebsd-ports/devel/sdl12/files/patch-src_cdrom_freebsd_SDL_syscdrom.c
Marcus von Appen 14d164ef43 Fix CDROM device names on the current FreeBSD releases
PR:		ports/165853
Submitted by:	gahr@
Feature safe:	yes
2012-03-14 20:02:08 +00:00

11 lines
491 B
C

--- src/cdrom/freebsd/SDL_syscdrom.c.orig 2012-03-14 08:36:58.000000000 +0100
+++ src/cdrom/freebsd/SDL_syscdrom.c 2012-03-14 08:36:11.000000000 +0100
@@ -188,7 +188,7 @@
char *insert;
exists = 1;
for ( j=checklist[i][1]; exists; ++j ) {
- SDL_snprintf(drive, SDL_arraysize(drive), "/dev/%sc", &checklist[i][3]);
+ SDL_snprintf(drive, SDL_arraysize(drive), "/dev/%s", &checklist[i][3]);
insert = SDL_strchr(drive, '?');
if ( insert != NULL ) {
*insert = j;