/[packages]/cauldron/aumix/current/SOURCES/aumix-2.8-fix-changing-level-non-interactively.patch
ViewVC logotype

Contents of /cauldron/aumix/current/SOURCES/aumix-2.8-fix-changing-level-non-interactively.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 305 - (show annotations) (download)
Fri Jan 7 21:39:43 2011 UTC (13 years, 3 months ago) by pterjan
File size: 739 byte(s)
imported package aumix
1 --- aumix-2.8/src/common.c.pix 2005-01-05 16:14:41.695009535 +0100
2 +++ aumix-2.8/src/common.c 2005-01-05 16:16:26.116163197 +0100
3 @@ -626,10 +626,11 @@
4 ErrorExitWarn(ReadLevel(dev, &tmp), 'e');
5 right = tmp >> 8; /* I'll take the high byte, */
6 left = tmp & 0xFF; /* and you take the low byte. */
7 - strncpy(&dest, (optarg + 1), 3);
8 - change = 1; /* For compatibility with versions 1.15 to 1.17, assume one if no number was given. */
9 - if (atoi(&dest))
10 - change = atoi(&dest);
11 + if (optarg[1] == '\0')
12 + change = 1; /* For compatibility with versions 1.15 to 1.17, assume one if no number was given. */
13 + else
14 + change = atoi(optarg + 1);
15 +
16 if (*optarg == '+') { /* increase */
17 right += change;
18 left += change;

  ViewVC Help
Powered by ViewVC 1.1.30