From faf8aad99ad066d59c7599bfb272d1fb1943748b Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 11 Oct 2006 13:59:42 +0200 Subject: [PATCH] fix two issues in snd_device_name_hint() - returned wrong error when the namehint section does not exist - variable underflow for the rawmidi interface --- src/control/namehint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/control/namehint.c b/src/control/namehint.c index e787b9df..4e5b0b01 100644 --- a/src/control/namehint.c +++ b/src/control/namehint.c @@ -425,7 +425,7 @@ static int add_card(struct hint_list *list, int card, snd_ctl_elem_iface_t iface int snd_device_name_hint(int card, snd_ctl_elem_iface_t iface, char ***hints) { struct hint_list list; - char ehints[16]; + char ehints[24]; const char *str; snd_config_t *conf; snd_config_iterator_t i, next; @@ -466,6 +466,7 @@ int snd_device_name_hint(int card, snd_ctl_elem_iface_t iface, char ***hints) goto __error; } } + err = 0; __error: if (err < 0) { snd_device_name_free_hint(list.list); -- 2.47.1