projects
/
project
/
mountd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d5926d3
)
fix gcc format security errors
author
Hauke Mehrtens
<hauke@hauke-m.de>
Sun, 22 Nov 2015 14:43:09 +0000
(15:43 +0100)
committer
John Crispin
<blogic@openwrt.org>
Sun, 22 Nov 2015 15:38:24 +0000
(16:38 +0100)
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
autofs.c
patch
|
blob
|
history
log.c
patch
|
blob
|
history
diff --git
a/autofs.c
b/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)
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';
else
snprintf(uci_path, 31, "/tmp/mounts/");
uci_path[31] = '\0';
diff --git
a/log.c
b/log.c
index
ae7a7c9
..
8ef4d5a
100644
(file)
--- a/
log.c
+++ b/
log.c
@@
-26,7
+26,7
@@
void log_printf(char *fmt, ...)
va_end(ap);
if(daemonize)
va_end(ap);
if(daemonize)
- syslog(10, p);
+ syslog(10,
"%s",
p);
else
else
- printf(p);
+ printf(
"%s",
p);
}
}