Public bug reported:
Binary package hint: wavemon
Hello,
i found a bug in wavemon 0.4.0b-11. If you start the program and change the
treshold action for high or low
to "beep" and save these changes to the config-file, next time you start
wavemon the treshold action is
always "beep+flash". This happens, because in function ll_scan() will 'beep'
found in the list, but then
the function will not end, so the next items of the list will checked about
'beep' and the last item of the list
contains 'beep+flash' so the return value is 3 ('beep+flash') and not 1
('beep').
In file llist.c:
signed long ll_scan(int ld, const char *format, ...)
{
...
case 'S': string_v = strdup(va_arg(ap, char *));
for (i = 0; (l = l->next); i++)
if ((strdiff = strlen(l->e) -
strlen(string_v)) > 0) {
for (j = 0; j <
strdiff; j++)
if
(!strncasecmp(l->e + j, string_v, strlen(string_v))) rv = i;
} else if (!strncasecmp(l->e,
string_v, strlen(string_v))) rv = i; <- Here must end the
for-Loop if 'beep' is found
free(string_v);
}
...
}
Hope you understand me. Excuse my bad english.
Yours sincerely, Pinking.
** Affects: wavemon (Ubuntu)
Importance: Undecided
Status: New
--
Saved treshold action = beep will change after restart into beep+flash
https://bugs.launchpad.net/bugs/209710
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs