vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| robert@ pointed out that $ tunerctl chanset=foo causes a segfault. same also happens with 'tunerctl audio=foo'. the following diff fixes those. OK to apply? -- <jakemsr@jakemsr.com> Index: tunerctl.c ================================================== ================= RCS file: /cvs/src/usr.bin/tunerctl/tunerctl.c,v retrieving revision 1.1 diff -u -r1.1 tunerctl.c --- tunerctl.c 4 Jul 2005 21:10:26 -0000 1.1 +++ tunerctl.c 5 Jul 2005 20:25:36 -0000 @@ -280,7 +280,7 @@ if (strncmp(audiosources[i].name, arg, strlen(audiosources[i].name)) == 0) break; - if (audiosources[i].name[0] != '\0') + if (audiosources[i].name != '\0') fields[index].val = audiosources[i].value; else { warnx("%s is invalid: %s", fields[index].name, @@ -293,7 +293,7 @@ if (strncmp(chansets[i].name, arg, strlen(chansets[i].name)) == 0) break; - if (chansets[i].name[0] != '\0') + if (chansets[i].name != '\0') fields[index].val = chansets[i].value; else { warnx("%s is invalid: %s", fields[index].name, |