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; |