support for disk without partition table
[oweals/mountd.git] / autofs.c
index 5f8810e8f0c82609c375f9c4bbf158379c42f58d..4ad782d6adc0da54cc3bb7fcd94f4ece29175eb5 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';