keventd: properly zero terminate buffer, found by Coverity Scan
Also, fix default: case in error handling, must always continue back to
poll() on any recv() error.
@@ -227,9 +227,10 @@ int main(int argc, char *argv[])
continue;
default:
panic("unhandled");
- break;
+ continue;
}
}
+ buf[len] = 0;
/* skip libusb events, focus on kernel events/changes */
if (strncmp(buf, "change@", 7))
