[dovecot-cvs] dovecot/src/lib strfuncs.c,1.15,1.16
cras at procontrol.fi
cras at procontrol.fi
Wed Oct 23 17:19:58 EEST 2002
Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv14726
Modified Files:
strfuncs.c
Log Message:
Assert i_snprintf() string lengths to INT_MAX instead of SSIZE_T_MAX since
*printf()s returns int, not ssize_t..
Index: strfuncs.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/strfuncs.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- strfuncs.c 23 Oct 2002 13:16:50 -0000 1.15
+++ strfuncs.c 23 Oct 2002 13:19:56 -0000 1.16
@@ -392,7 +392,7 @@
int ret;
i_assert(str != NULL);
- i_assert(max_chars < SSIZE_T_MAX);
+ i_assert(max_chars < INT_MAX);
i_assert(format != NULL);
t_push();
@@ -413,7 +413,7 @@
int len;
i_assert(str != NULL);
- i_assert(max_chars < SSIZE_T_MAX);
+ i_assert(max_chars < INT_MAX);
i_assert(format != NULL);
t_push();
More information about the dovecot-cvs
mailing list