diff options
Diffstat (limited to 'src/udev/udev-event.c')
-rw-r--r-- | src/udev/udev-event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c index d330062ebf..e6f405b74a 100644 --- a/src/udev/udev-event.c +++ b/src/udev/udev-event.c @@ -133,7 +133,7 @@ size_t udev_event_apply_format(struct udev_event *event, const char *src, char * } for (i = 0; i < ELEMENTSOF(map); i++) { - if (strncmp(&from[1], map[i].name, strlen(map[i].name)) == 0) { + if (startswith(&from[1], map[i].name)) { type = map[i].type; from += strlen(map[i].name)+1; goto subst; |