dovecot-2.2: lib: test-strnum - fix format size mismatch

dovecot at dovecot.org dovecot at dovecot.org
Tue Sep 16 11:04:09 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/56b565986dd3
changeset: 17814:56b565986dd3
user:      Phil Carmody <phil at dovecot.fi>
date:      Tue Sep 16 14:03:52 2014 +0300
description:
lib: test-strnum - fix format size mismatch
Signed-off-by: Phil Carmody <phil at dovecot.fi>

diffstat:

 src/lib/test-strnum.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r c58aaa79d647 -r 56b565986dd3 src/lib/test-strnum.c
--- a/src/lib/test-strnum.c	Tue Sep 16 13:38:30 2014 +0300
+++ b/src/lib/test-strnum.c	Tue Sep 16 14:03:52 2014 +0300
@@ -17,7 +17,7 @@
 	if(val >= BIGBASE) {
 		len = crappy_uintmax_to_str(into, val/BIGBASE);
 	}
-	i_snprintf(into + len, 10, "%09lu", val % BIGBASE);
+	i_snprintf(into + len, 10, "%09lu", (unsigned long)(val % BIGBASE));
 	return len + strlen(STRINGIFY2(BIGBASE))-2;
 #undef STRINGIFY2
 #undef STRINGIFY


More information about the dovecot-cvs mailing list