summaryrefslogtreecommitdiffstats
path: root/src/journal
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2018-11-16 07:11:06 +0100
committerEvgeny Vereshchagin <evvers@ya.ru>2018-11-16 08:45:16 +0100
commit080d112caa0dc948555a69a008c1caf4d5d41ed6 (patch)
tree251de04766caf2e179fb16ec387056944fd208b1 /src/journal
parentbasic: remove an assertion from cunescape_one (diff)
downloadsystemd-080d112caa0dc948555a69a008c1caf4d5d41ed6.tar.xz
systemd-080d112caa0dc948555a69a008c1caf4d5d41ed6.zip
journal: fix an off-by-one error in dev_kmsg_record
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/journald-kmsg.c2
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);