]> git.pld-linux.org Git - packages/tcsh.git/blob - tcsh-format-security.patch
Fix build with -Werror=format-security
[packages/tcsh.git] / tcsh-format-security.patch
1 --- tcsh-6.18.01/sh.func.c.formatsec    2013-02-13 22:26:11.659476651 +0100
2 +++ tcsh-6.18.01/sh.func.c      2013-02-13 22:28:13.118818644 +0100
3 @@ -2317,7 +2317,7 @@ setlim(struct limits *lp, int hard, RLIM
4      if (setrlimit(lp->limconst, &rlim) < 0) {
5         if ( ( lp->limconst == RLIMIT_LOCKS ) &&
6             ( errno == EINVAL ) ) {
7 -              xprintf(CGETS(15, 5, "cannot set it on the current kernel\n"));
8 +              xprintf("%s", CGETS(15, 5, "cannot set it on the current kernel\n"));
9                return(0);
10         }
11  # else /* BSDLIMIT */
This page took 0.041992 seconds and 3 git commands to generate.