Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=2e53cb77731ccf7b241be66adc4023c47fd09c5d
commit 2e53cb77731ccf7b241be66adc4023c47fd09c5d Author: Miklos Vajna <[email protected]> Date: Thu Feb 4 15:02:18 2016 +0100 -Werror=format-security diff --git a/configure.ac b/configure.ac index cce2e79..d4b117f 100644 --- a/configure.ac +++ b/configure.ac @@ -413,14 +413,15 @@ dnl Enable or disable debug code AC_MSG_CHECKING(for debug mode request) if test x$debug = xyes ; then AM_CONDITIONAL(PACMAN_DEBUG, test x$debug = xyes) - CFLAGS="-ggdb3 -Wall -std=c99 -DPACMAN_DEBUG" + CFLAGS="-ggdb3 -Wall -DPACMAN_DEBUG" AC_MSG_RESULT(yes) else AM_CONDITIONAL(PACMAN_DEBUG, test x$debug = xno) - CFLAGS="$CFLAGS -std=c99" AC_MSG_RESULT(no) fi +CFLAGS="$CFLAGS -std=c99 -Wformat -Wformat-security" + dnl Enable or disable building with Werror AC_MSG_CHECKING(for building with Werror) if test x$werror = xyes ; then diff --git a/lib/libftp/ftplib.c b/lib/libftp/ftplib.c index a6cba24..08e9323 100644 --- a/lib/libftp/ftplib.c +++ b/lib/libftp/ftplib.c @@ -1564,7 +1564,7 @@ GLOBALREF int HttpGet(const char *host, const char *outputfile, const char *path /* Format: * "If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT\r\n" * We don't like strftime()'s localized output. */ - snprintf(lang, sizeof(lang), setlocale(LC_ALL, NULL)); + snprintf(lang, sizeof(lang), "%s", setlocale(LC_ALL, NULL)); setlocale(LC_ALL, "C"); strftime(mtime, sizeof(mtime), "%a, %d %b %Y %H:%M:%S GMT", mtime1); setlocale(LC_ALL, lang); _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
