mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-20 13:36:39 +07:00
notify: properly NUL-terminate received messages
This commit is contained in:
parent
d0b170c813
commit
8c40acf7cb
@ -1656,7 +1656,8 @@ static int manager_process_notify_fd(Manager *m) {
|
||||
continue;
|
||||
}
|
||||
|
||||
char_array_0(buf);
|
||||
assert((size_t) n < sizeof(buf));
|
||||
buf[n] = 0;
|
||||
if (!(tags = strv_split(buf, "\n\r")))
|
||||
return -ENOMEM;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user