[OpenWrt-Devel] [PATCH ubox] fix gcc format security error
Hauke Mehrtens
hauke at hauke-m.de
Sun Nov 22 09:45:27 EST 2015
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
log/syslog.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/log/syslog.c b/log/syslog.c
index a596b48..e8b6774 100644
--- a/log/syslog.c
+++ b/log/syslog.c
@@ -66,7 +66,7 @@ log_add(char *buf, int size, int source)
/* bounce out if we don't have init'ed yet (regmatch etc will blow) */
if (!log) {
- fprintf(stderr, buf);
+ fprintf(stderr, "%s", buf);
return;
}
--
2.6.2
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list