From: Karel Zak Date: Wed, 21 Jan 2009 15:58:04 +0000 (+0100) Subject: blkid: fix blkid_safe_string() X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17d6fe2ea36a01056907ca5e89eedef46cbce32c;p=util-linux blkid: fix blkid_safe_string() Signed-off-by: Karel Zak --- diff --git a/libs/blkid/src/encode.c b/libs/blkid/src/encode.c index 0c00ec94..d45a292e 100644 --- a/libs/blkid/src/encode.c +++ b/libs/blkid/src/encode.c @@ -282,7 +282,7 @@ err: */ int blkid_safe_string(const char *str, char *str_safe, size_t len) { - replace_whitespace(str, str_safe, sizeof(len)); + replace_whitespace(str, str_safe, len); replace_chars(str_safe, UDEV_ALLOWED_CHARS_INPUT); return 0; }