From: Jaroslav Kysela Date: Mon, 12 Feb 2001 13:33:25 +0000 (+0000) Subject: Fixed typo & thinko X-Git-Tag: v1.0.3~260 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=abd8b9f9e89f81583472bb0e649257ec13de839d;p=alsa-utils.git Fixed typo & thinko --- diff --git a/amixer/amixer.c b/amixer/amixer.c index f7057c4..7934223 100644 --- a/amixer/amixer.c +++ b/amixer/amixer.c @@ -666,6 +666,7 @@ static int parse_simple_id(const char *str, snd_mixer_selem_id_t *sid) return 0; if (*str != ',') return -EINVAL; + *ptr = 0; /* terminate the string */ str++; if (!isdigit(*str)) return -EINVAL; @@ -879,7 +880,7 @@ static int sset(unsigned int argc, char *argv[], int roflag) return err; } min = snd_mixer_selem_info_get_min(info); - max = snd_mixer_selem_info_get_min(info); + max = snd_mixer_selem_info_get_max(info); if (roflag) goto __skip_write; for (idx = 1; idx < argc; idx++) {