journal: fix an off-by-one error in dev_kmsg_record

This commit is contained in:
Evgeny Vereshchagin 2018-11-16 07:11:06 +01:00
parent 8dc4de966c
commit 080d112caa
1 changed files with 1 additions and 1 deletions

View File

@ -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);