[dovecot-cvs] dovecot/src/lib printf-upper-bound.c,1.1,1.2
cras at procontrol.fi
cras at procontrol.fi
Sat Dec 28 10:01:47 EET 2002
Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv25909/lib
Modified Files:
printf-upper-bound.c
Log Message:
Allow %m in printf_string_upper_bound(). Fixes syslog failure handler.
Index: printf-upper-bound.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/printf-upper-bound.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- printf-upper-bound.c 22 Dec 2002 07:06:16 -0000 1.1
+++ printf-upper-bound.c 28 Dec 2002 08:01:45 -0000 1.2
@@ -282,6 +282,12 @@
conv_done = TRUE;
(void) va_arg (args, void*);
break;
+ case 'm':
+ /* normally we shouldn't even get here, but we could be just
+ checking the format string is valid before giving the
+ format to vsyslog(). */
+ conv_len += strlen(strerror(errno)) + 256;
+ break;
/* handle invalid cases
*/
More information about the dovecot-cvs
mailing list