1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/ftp/weex/files/patch-src_log.c
Jean-Yves Lefort bad1c3bd65 - Fix a remote format string vulnerability
- Remove attribution from pkg-descr

PR:		ports/86833
Submitted by:	maintainer
Security:	fixes a remote format string vulnerability
2005-10-02 15:58:54 +00:00

12 lines
249 B
C

--- src/log.c.orig Mon Aug 18 11:52:38 2003
+++ src/log.c Sun Oct 2 11:06:58 2005
@@ -183,7 +183,7 @@
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);