Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 0970f107518eb369c7c30d2e52dc5edc > files > 4

aumix-2.8-18mdv2008.1.src.rpm

--- aumix-2.8/src/common.c.pix	2005-01-05 16:14:41.695009535 +0100
+++ aumix-2.8/src/common.c	2005-01-05 16:16:26.116163197 +0100
@@ -626,10 +626,11 @@
 		ErrorExitWarn(ReadLevel(dev, &tmp), 'e');
 		right = tmp >> 8;	/* I'll take the high byte, */
 		left = tmp & 0xFF;	/* and you take the low byte. */
-		strncpy(&dest, (optarg + 1), 3);
-		change = 1;	/* For compatibility with versions 1.15 to 1.17, assume one if no number was given. */
-		if (atoi(&dest))
-			change = atoi(&dest);
+		if (optarg[1] == '\0')
+			change = 1;	/* For compatibility with versions 1.15 to 1.17, assume one if no number was given. */
+		else
+			change = atoi(optarg + 1);
+
 		if (*optarg == '+') {	/* increase */
 			right += change;
 			left += change;