From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Mar 8 11:20:08 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E78761065673 for ; Thu, 8 Mar 2012 11:20:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A715C8FC0C for ; Thu, 8 Mar 2012 11:20:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q28BK8E2033859 for ; Thu, 8 Mar 2012 11:20:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q28BK8t0033858; Thu, 8 Mar 2012 11:20:08 GMT (envelope-from gnats) Resent-Date: Thu, 8 Mar 2012 11:20:08 GMT Resent-Message-Id: <201203081120.q28BK8t0033858@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Pietro Cerutti Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1908E106566C for ; Thu, 8 Mar 2012 11:18:41 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 04C008FC19 for ; Thu, 8 Mar 2012 11:18:41 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q28BIetC050021 for ; Thu, 8 Mar 2012 11:18:40 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q28BIe3e050020; Thu, 8 Mar 2012 11:18:40 GMT (envelope-from nobody) Message-Id: <201203081118.q28BIe3e050020@red.freebsd.org> Date: Thu, 8 Mar 2012 11:18:40 GMT From: Pietro Cerutti To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/165853: [patch] devel/sdl12 -- fix CDROM device names X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Mar 2012 11:20:09 -0000 >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: