filesystem mount options in uci as optional parameter
[project/mountd.git] / autofs.c
index 5f8810e..4ad782d 100644 (file)
--- a/autofs.c
+++ b/autofs.c
@@ -194,7 +194,7 @@ static void autofs_init(void)
        p = ucix_get_option(ctx, "mountd", "mountd", "path");
        ucix_cleanup(ctx);
        if(p)
-               snprintf(uci_path, 31, p);
+               snprintf(uci_path, 31, "%s", p);
        else
                snprintf(uci_path, 31, "/tmp/mounts/");
        uci_path[31] = '\0';