mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-12 01:11:27 +02:00
26247: fix compilation with -Werror=format-security
This commit is contained in:
parent
e2fd1d7f1a
commit
ead23b1898
3 changed files with 12 additions and 7 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2009-01-05 Andrey Borzenkov <bor@zsh.org>
|
||||||
|
|
||||||
|
* 26247: configure.ac, Src/Zle/zle_tricky.c: fix compilation
|
||||||
|
with -Werror=format-security GCC option.
|
||||||
|
|
||||||
2009-01-03 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
2009-01-03 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||||
|
|
||||||
* Richard Hartmann: 26229: Doc/Zsh/mod_stat.yo: note that zstat
|
* Richard Hartmann: 26229: Doc/Zsh/mod_stat.yo: note that zstat
|
||||||
|
|
|
@ -2286,7 +2286,7 @@ printfmt(char *fmt, int n, int dopr, int doesc)
|
||||||
case 'n':
|
case 'n':
|
||||||
sprintf(nc, "%d", n);
|
sprintf(nc, "%d", n);
|
||||||
if (dopr)
|
if (dopr)
|
||||||
fprintf(shout, nc);
|
fputs(nc, shout);
|
||||||
cc += MB_METASTRWIDTH(nc);
|
cc += MB_METASTRWIDTH(nc);
|
||||||
break;
|
break;
|
||||||
case 'B':
|
case 'B':
|
||||||
|
|
12
configure.ac
12
configure.ac
|
@ -1477,27 +1477,27 @@ if test x$zsh_cv_path_term_header != xnone; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_MSG_CHECKING(if boolcodes is available)
|
AC_MSG_CHECKING(if boolcodes is available)
|
||||||
AC_TRY_LINK($term_includes, [char **test = boolcodes; printf(*test);],
|
AC_TRY_LINK($term_includes, [char **test = boolcodes; puts(*test);],
|
||||||
AC_DEFINE(HAVE_BOOLCODES) boolcodes=yes, boolcodes=no)
|
AC_DEFINE(HAVE_BOOLCODES) boolcodes=yes, boolcodes=no)
|
||||||
AC_MSG_RESULT($boolcodes)
|
AC_MSG_RESULT($boolcodes)
|
||||||
AC_MSG_CHECKING(if numcodes is available)
|
AC_MSG_CHECKING(if numcodes is available)
|
||||||
AC_TRY_LINK($term_includes, [char **test = numcodes; printf(*test);],
|
AC_TRY_LINK($term_includes, [char **test = numcodes; puts(*test);],
|
||||||
AC_DEFINE(HAVE_NUMCODES) numcodes=yes, numcodes=no)
|
AC_DEFINE(HAVE_NUMCODES) numcodes=yes, numcodes=no)
|
||||||
AC_MSG_RESULT($numcodes)
|
AC_MSG_RESULT($numcodes)
|
||||||
AC_MSG_CHECKING(if strcodes is available)
|
AC_MSG_CHECKING(if strcodes is available)
|
||||||
AC_TRY_LINK($term_includes, [char **test = strcodes; printf(*test);],
|
AC_TRY_LINK($term_includes, [char **test = strcodes; puts(*test);],
|
||||||
AC_DEFINE(HAVE_STRCODES) strcodes=yes, strcodes=no)
|
AC_DEFINE(HAVE_STRCODES) strcodes=yes, strcodes=no)
|
||||||
AC_MSG_RESULT($strcodes)
|
AC_MSG_RESULT($strcodes)
|
||||||
AC_MSG_CHECKING(if boolnames is available)
|
AC_MSG_CHECKING(if boolnames is available)
|
||||||
AC_TRY_LINK($term_includes, [char **test = boolnames; printf(*test);],
|
AC_TRY_LINK($term_includes, [char **test = boolnames; puts(*test);],
|
||||||
AC_DEFINE(HAVE_BOOLNAMES) boolnames=yes, boolnames=no)
|
AC_DEFINE(HAVE_BOOLNAMES) boolnames=yes, boolnames=no)
|
||||||
AC_MSG_RESULT($boolnames)
|
AC_MSG_RESULT($boolnames)
|
||||||
AC_MSG_CHECKING(if numnames is available)
|
AC_MSG_CHECKING(if numnames is available)
|
||||||
AC_TRY_LINK($term_includes, [char **test = numnames; printf(*test);],
|
AC_TRY_LINK($term_includes, [char **test = numnames; puts(*test);],
|
||||||
AC_DEFINE(HAVE_NUMNAMES) numnames=yes, numnames=no)
|
AC_DEFINE(HAVE_NUMNAMES) numnames=yes, numnames=no)
|
||||||
AC_MSG_RESULT($numnames)
|
AC_MSG_RESULT($numnames)
|
||||||
AC_MSG_CHECKING(if strnames is available)
|
AC_MSG_CHECKING(if strnames is available)
|
||||||
AC_TRY_LINK($term_includes, [char **test = strnames; printf(*test);],
|
AC_TRY_LINK($term_includes, [char **test = strnames; puts(*test);],
|
||||||
AC_DEFINE(HAVE_STRNAMES) strnames=yes, strnames=no)
|
AC_DEFINE(HAVE_STRNAMES) strnames=yes, strnames=no)
|
||||||
AC_MSG_RESULT($strnames)
|
AC_MSG_RESULT($strnames)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue