Hi, > > diff --git a/libudev/libudev-util.c b/libudev/libudev-util.c > > index 9a141db..a2aef84 100644 > > --- a/libudev/libudev-util.c > > +++ b/libudev/libudev-util.c > > @@ -355,7 +355,7 @@ int udev_util_replace_whitespace(const char *str, > > char *to, size_t len) size_t i, j; > > > > /* strip trailing whitespace */ > > - len = strnlen(str, len); > > + len = strnlen(str, len-1); > > while (len && isspace(str[len-1])) > > len--; > > > wrong. Because? > Please try to understand what this loop does. And then? Florian -- 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