Commit b4e4ca49 by Serge Hallyn

lxc_monitor: make sure msg.name is null terminated (bug found by coverity)

parent c928f41f
......@@ -97,6 +97,7 @@ int main(int argc, char *argv[])
if (lxc_monitor_read(fd, &msg) < 0)
return -1;
msg.name[sizeof(msg.name)-1] = '\0';
if (regexec(&preg, msg.name, 0, NULL, 0))
continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment