Update of /cvsroot/alsa/alsa-utils/amixer
In directory sc8-pr-cvs1:/tmp/cvs-serv5186
Modified Files:
amixer.c
Log Message:
Fixed possible buffer overrun
Index: amixer.c
===================================================================
RCS file: /cvsroot/alsa/alsa-utils/amixer/amixer.c,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -r1.77 -r1.78
--- amixer.c 1 Apr 2003 14:09:10 -0000 1.77
+++ amixer.c 17 Oct 2003 07:34:19 -0000 1.78
@@ -1486,7 +1486,8 @@
break;
case 'D':
case HELPID_DEVICE:
- strcpy(card, optarg);
+ strncpy(card, optarg, sizeof(card-1));
+ card[sizeof(card)-1] = '\0';
break;
case 'q':
case HELPID_QUIET:
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog