: An option cannot specify correctly.
The following issue has been CLOSED
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=247>
======================================================================
Reported By: sitamo
Assigned To:
======================================================================
Project: ALSA - utils Issue ID: 247 Category: alsamixer Reproducibility: always Severity: feature Priority: normal Status: closed Resolution: not an issue Fixed in Version: ====================================================================== Date Submitted: 04-29-2004 18:14 CEST Last Modified: 07-08-2005 10:34 CEST
======================================================================
Summary: An option cannot specify correctly.
Description:
I think that it becomes the following codes.
alsamixer.c 2004-04-30 01:08:52.000000000 +0900 renamed from alsamixer.c.org 2004-02-17 01:44:06.000000000 +0900 +2 -2
@@ -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 07-08-05 10:34 perex Status resolved => closed
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar