X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fmountd.git;a=blobdiff_plain;f=autofs.c;fp=autofs.c;h=4ad782d6adc0da54cc3bb7fcd94f4ece29175eb5;hp=5f8810e8f0c82609c375f9c4bbf158379c42f58d;hb=8476a03b25d457e99f59e6372b8d9faebe2266f8;hpb=d5926d3848b1e9c6147f0bd908a35d20cdef50b5 diff --git a/autofs.c b/autofs.c index 5f8810e..4ad782d 100644 --- 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';