]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
printf_format_fix*() assert-crashed if the format ended with "%%".
authorTimo Sirainen <tss@iki.fi>
Sat, 12 Feb 2011 03:31:32 +0000 (05:31 +0200)
committerTimo Sirainen <tss@iki.fi>
Sat, 12 Feb 2011 03:31:32 +0000 (05:31 +0200)
src/lib/printf-format-fix.c

index de80ee031cdb3c79510a421a04c963ab8f59b33d..ba811d341c01414bb1f3d9a0671f656d6e6c627e 100644 (file)
@@ -46,6 +46,7 @@ printf_format_fix_noalloc(const char *format, unsigned int *len_r)
                        case '\0':
                                i_panic("%% modifier missing");
                        }
+                       p++;
                }
        }