changeset 12660:43edb481978f

printf_format_fix*() assert-crashed if the format ended with "%%".
author Timo Sirainen <tss@iki.fi>
date Sat, 12 Feb 2011 05:31:32 +0200
parents c65dc5f520f8
children 59748a023cc4
files src/lib/printf-format-fix.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/printf-format-fix.c	Sat Feb 12 05:17:12 2011 +0200
+++ b/src/lib/printf-format-fix.c	Sat Feb 12 05:31:32 2011 +0200
@@ -46,6 +46,7 @@
 			case '\0':
 				i_panic("%% modifier missing");
 			}
+			p++;
 		}
 	}