Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=695f2ab035b129a0e375e2ae09667dde910af367
commit 695f2ab035b129a0e375e2ae09667dde910af367 Author: Miklos Vajna <[email protected]> Date: Thu Feb 4 15:11:41 2016 +0100 -Werror=format-security diff --git a/src/pacman-g2/log.c b/src/pacman-g2/log.c index 6eddcb1..1dc41c9 100644 --- a/src/pacman-g2/log.c +++ b/src/pacman-g2/log.c @@ -104,7 +104,7 @@ void pm_fprintf(FILE *file, unsigned short line, const char *fmt, ...) vsnprintf(str, LOG_STR_LEN, fmt, args); va_end(args); - fprintf(file, str); + fprintf(file, "%s", str); fflush(file); neednl = (str[strlen(str)-1] == 10) ? 0 : 1; _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
