ports/165853: [patch] devel/sdl12 -- fix CDROM device names
Pietro Cerutti
gahr at FreeBSD.org
Thu Mar 8 11:20:09 UTC 2012
>Number: 165853
>Category: ports
>Synopsis: [patch] devel/sdl12 -- fix CDROM device names
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Mar 08 11:20:08 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Pietro Cerutti
>Release:
>Organization:
The FreeBSD Project
>Environment:
>Description:
CDROM names in libsdl-1.2 still have a 'c' at the tail (/dev/cd0c).
The patch file attached fixes this.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
--- src/cdrom/freebsd/SDL_syscdrom.c.orig 2012-03-08 12:04:47.000000000 +0100
+++ src/cdrom/freebsd/SDL_syscdrom.c 2012-03-08 12:04:54.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;
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list