Hi, untested, etc. Florian diff --git a/udev/udevadm.c b/udev/udevadm.c index b7295f3..1b33386 100644 --- a/udev/udevadm.c +++ b/udev/udevadm.c @@ -159,7 +159,7 @@ int main(int argc, char *argv[]) ssize_t len; snprintf(path, sizeof(path), "/proc/%lu/exe", (unsigned long) getppid()); - len = readlink(path, prog, sizeof(prog)); + len = readlink(path, prog, sizeof(prog)-1); if (len > 0) { prog[len] = '\0'; fprintf(stderr, "the program '%s' called '%s', it should use 'udevadm %s <options>', " -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html