From 7b2cc96f18492158db113a39a3f1e9f80a53e8ef Mon Sep 17 00:00:00 2001 From: Abramo Bagnara Date: Wed, 7 Feb 2001 17:09:00 +0000 Subject: [PATCH] Fixed sign --- alsactl/alsactl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alsactl/alsactl.c b/alsactl/alsactl.c index e4faafc..21c3577 100644 --- a/alsactl/alsactl.c +++ b/alsactl/alsactl.c @@ -300,10 +300,10 @@ static int get_control(snd_ctl_t *handle, snd_ctl_element_id_t *id, snd_config_t { size_t size = type == SND_CTL_ELEMENT_TYPE_BYTES ? count : sizeof(snd_aes_iec958_t); - char buf[count * 2 + 1]; + char buf[size * 2 + 1]; char *p = buf; char *hex = "0123456789abcdef"; - const char *bytes = snd_ctl_element_get_bytes(ctl); + const unsigned char *bytes = snd_ctl_element_get_bytes(ctl); for (idx = 0; idx < size; idx++) { int v = bytes[idx]; *p++ = hex[v >> 4];