From 17d6fe2ea36a01056907ca5e89eedef46cbce32c Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 21 Jan 2009 16:58:04 +0100 Subject: [PATCH] blkid: fix blkid_safe_string() Signed-off-by: Karel Zak --- libs/blkid/src/encode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5