]> err.no Git - util-linux/commitdiff
blkid: fix blkid_safe_string()
authorKarel Zak <kzak@redhat.com>
Wed, 21 Jan 2009 15:58:04 +0000 (16:58 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Feb 2009 22:35:22 +0000 (23:35 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libs/blkid/src/encode.c

index 0c00ec94c3d2f438d169b148b6d63bf2cda99e56..d45a292e89a7a811262b8fe5e9df80b0d4420d1d 100644 (file)
@@ -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;
 }