diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2018-11-16 07:11:06 +0100 |
---|---|---|
committer | Evgeny Vereshchagin <evvers@ya.ru> | 2018-11-16 08:45:16 +0100 |
commit | 080d112caa0dc948555a69a008c1caf4d5d41ed6 (patch) | |
tree | 251de04766caf2e179fb16ec387056944fd208b1 /src | |
parent | 8dc4de966ce6d32470aaff30ed054f6a2688d6d7 (diff) | |
download | systemd-080d112caa0dc948555a69a008c1caf4d5d41ed6.tar.gz systemd-080d112caa0dc948555a69a008c1caf4d5d41ed6.tar.bz2 systemd-080d112caa0dc948555a69a008c1caf4d5d41ed6.zip |
journal: fix an off-by-one error in dev_kmsg_record
Diffstat (limited to 'src')
-rw-r--r-- | src/journal/journald-kmsg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journald-kmsg.c b/src/journal/journald-kmsg.c index e343c3f192..ce82102eed 100644 --- a/src/journal/journald-kmsg.c +++ b/src/journal/journald-kmsg.c @@ -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); |