Skip to contentSkip to conversation

: the argument parsing for -D is broken (fix included)

ALSA - utils 0000430 [email protected] 1 participant 1 message Sep 24, 2004

lore
Share & tools
lore
#0 lore raw

The following bug has been CLOSED
======================================================================
https://bugtrack.alsa-project.org/alsa-bug/bug_view_page.php?bug_id=0000430
======================================================================

Reported By:                muth
Assigned To:                perex
======================================================================
Project:                    ALSA - utils
Bug ID:                     430
Category:                   amixer
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
======================================================================
Date Submitted:             08-08-2004 04:28 CEST
Last Modified:              09-24-2004 13:40 CEST

======================================================================
Summary: the argument parsing for -D is broken (fix included)
Description:
Form amixer.c

case 'D':

	case HELPID_DEVICE:
		strncpy(card, optarg, sizeof(card-1));
			card[sizeof(card)-1] = '\0';
			break;

the first sizeof should be like the second sizeof. Right now it will be identical to sizeof(int) or four.

======================================================================

----------------------------------------------------------------------
perex - 08-10-2004 11:46 CEST
----------------------------------------------------------------------
Fixed in CVS. Thanks.

Bug History
Date Modified Username Field Change
======================================================================

08-08-04 04:28 muth           New Bug                                      
08-10-04 11:46 perex          Bugnote Added: 0001547                       
08-10-04 11:46 perex          Assigned To               => perex           
08-10-04 11:46 perex          Resolution               open => fixed       
08-10-04 11:46 perex          Status                   new => resolved     
09-24-04 13:40 tiwai          Status                   resolved => closed  

======================================================================

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php