mirror of
https://github.com/systemd/systemd.git
synced 2026-08-03 14:40:31 +00:00
journal: fix an off-by-one error in dev_kmsg_record
This commit is contained in:
@@ -235,7 +235,7 @@ void dev_kmsg_record(Server *s, char *p, size_t l) {
|
||||
j = 0;
|
||||
FOREACH_DEVICE_DEVLINK(d, g) {
|
||||
|
||||
if (j > N_IOVEC_UDEV_FIELDS)
|
||||
if (j >= N_IOVEC_UDEV_FIELDS)
|
||||
break;
|
||||
|
||||
b = strappend("_UDEV_DEVLINK=", g);
|
||||
|
||||
Reference in New Issue
Block a user