From abd8b9f9e89f81583472bb0e649257ec13de839d Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 12 Feb 2001 13:33:25 +0000 Subject: [PATCH] Fixed typo & thinko --- amixer/amixer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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++) {