Skip to content

Commit

Permalink
Marcus von Appen fixed bug 1529: CDROM detection misbehaviour for Fre…
Browse files Browse the repository at this point in the history
…eBSD 7.x and newer

FreeBSD's device naming changed in several ways since FreeBSD 6.x. The attached
patch fixes the device naming scheme for FreeBSD 7 and newer (the currently
supported upstream version of FreeBSD).
  • Loading branch information
slouken committed Jul 2, 2012
1 parent 429af18 commit c3be661
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdrom/freebsd/SDL_syscdrom.c
Expand Up @@ -188,7 +188,7 @@ int SDL_SYS_CDInit(void)
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;
Expand Down

0 comments on commit c3be661

Please sign in to comment.