chiark / gitweb /
replace_chars: replace spaces in node name
[elogind.git] / extras / volume_id / vol_id.c
index cb1d455891a906341af0495895518f1ca854b0e0..53b4cfff0ba9dec02978e710af61ce51343687fd 100644 (file)
@@ -274,9 +274,9 @@ int main(int argc, char *argv[])
        }
 
        set_str(label_safe, label, sizeof(label_safe));
-       replace_untrusted_chars(label_safe);
+       replace_chars(label_safe, ALLOWED_CHARS_INPUT);
        set_str(uuid_safe, uuid, sizeof(uuid_safe));
-       replace_untrusted_chars(uuid_safe);
+       replace_chars(uuid_safe, ALLOWED_CHARS_INPUT);
 
        switch (print) {
        case PRINT_EXPORT: