X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=udev%2Fudev-rules.c;h=ddb51de8e1dc6f243dbe4dc5530adb83265499d3;hp=904ddac72c3867d62076bd1f0d6c1a168414e5e7;hb=bcb8b2315b192b03caa1a61d9d4e7704b7a742f3;hpb=24355313dc9686a14a618fcd9bbdedc29c57b651 diff --git a/udev/udev-rules.c b/udev/udev-rules.c index 904ddac72..ddb51de8e 100644 --- a/udev/udev-rules.c +++ b/udev/udev-rules.c @@ -1435,7 +1435,7 @@ static int add_rule(struct udev_rules *rules, char *line, continue; } - if (strcmp(key, "SYMLINK") == 0) { + if (strncmp(key, "SYMLINK", sizeof("SYMLINK")-1) == 0) { if (op < OP_MATCH_MAX) { rule_add_key(&rule_tmp, TK_M_DEVLINK, op, value, NULL); } else {