From: bugtrack@alsa-project.org Subject: [ALSA - utils 0000247]: An option cannot specify correctly. Date: Tue, 22 Mar 2005 09:47:26 +0100 Message-ID: <73db7ec32e92d79533ae7f75a842d8ad@bugtrack.alsa-project.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Received: from bugtrack.alsa-project.org (gate.perex.cz [82.113.61.162]) by alsa.alsa-project.org (ALSA's E-mail Delivery System) with ESMTP id 3B21528B for ; Tue, 22 Mar 2005 09:47:26 +0100 (MET) Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org The following issue has been RESOLVED. ====================================================================== ====================================================================== Reported By: sitamo Assigned To: ====================================================================== Project: ALSA - utils Issue ID: 247 Category: alsamixer Reproducibility: always Severity: feature Priority: normal Status: resolved Resolution: not an issue Fixed in Version: ====================================================================== Date Submitted: 04-29-2004 18:14 CEST Last Modified: 03-22-2005 09:47 CET ====================================================================== Summary: An option cannot specify correctly. Description: I think that it becomes the following codes. --- alsamixer/alsamixer.c.org 2004-02-17 01:44:06.000000000 +0900 +++ alsamixer/alsamixer.c 2004-04-30 01:08:52.000000000 +0900 @@ -2002,8 +2002,8 @@ } break; case 'D': - strncpy(card_id, optarg, sizeof(card_id)); - card_id[sizeof(card_id)-1] = '\0'; + strncpy(card_id, optarg, strlen(optarg)); + card_id[strlen(optarg)] = '\0'; break; case 'g': mixer_do_color = !mixer_do_color; ====================================================================== ---------------------------------------------------------------------- tiwai - 05-01-04 11:07 ---------------------------------------------------------------------- the current code is correct. what error did you have exactly? Issue History Date Modified Username Field Change ====================================================================== 04-29-04 18:14 sitamo New Issue 05-01-04 11:07 tiwai Note Added: 0000999 03-22-05 09:47 jdthood Status new => resolved 03-22-05 09:47 jdthood Resolution open => not an issue ====================================================================== ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click