1
0
mirror of https://github.com/ericonr/sndio.git synced 2024-02-18 04:45:21 -06:00

better error message about long groups

This commit is contained in:
Alexandre Ratchov 2016-08-28 12:34:04 +02:00
parent 16aeebd969
commit 01a52357c2

View File

@ -61,7 +61,7 @@ dev_siomix_ondesc(void *arg, struct siomix_desc *desc, int val)
dev_rmctl(d, addr);
strlcpy(ns, "dev", CTL_NAMEMAX);
if (sizeof("dev") + 1 + strlen(desc->group) >= CTL_NAMEMAX) {
log_puts("control with group, skipped\n");
log_puts("group name too, long skipped\n");
return;
}
if (desc->group[0] != 0) {