openbsd-ports/net/weex/patches/patch-src_log_c
naddy f2c4d909ef SECURITY:
Fix remote format string bug; from Ulf Harnhammar <metaur@telia.com>.
2005-10-03 14:23:27 +00:00

13 lines
334 B
Plaintext

$OpenBSD: patch-src_log_c,v 1.1 2005/10/03 14:23:27 naddy Exp $
--- src/log.c.orig Mon Oct 3 15:56:58 2005
+++ src/log.c Mon Oct 3 15:57:35 2005
@@ -183,7 +183,7 @@ void log_flush(void)
fp=log_open();
for(i=0;i<max_log;i++){
- fprintf(fp,log_str[i]);
+ fprintf(fp,"%s",log_str[i]);
free(log_str[i]);
}
free(log_str);