diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-11-05 16:36:31 +0100 |
---|---|---|
committer | Johannes Berg <johannes@sipsolutions.net> | 2008-11-05 16:36:31 +0100 |
commit | b8e50ca6ec642a64b7b582cd1775127c27bfeb32 (patch) | |
tree | c787184b8e403639868821338e5e98773f4bb09c /debug.c | |
parent | 770eab0ce9b1716f5dc1c2bb63c4d708a172e621 (diff) | |
download | dovecot-antispam-b8e50ca6ec642a64b7b582cd1775127c27bfeb32.tar.gz dovecot-antispam-b8e50ca6ec642a64b7b582cd1775127c27bfeb32.tar.xz dovecot-antispam-b8e50ca6ec642a64b7b582cd1775127c27bfeb32.zip |
fix debugv() bugs
Diffstat (limited to '')
-rw-r--r-- | debug.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -34,7 +34,7 @@ void debug(const char *fmt, ...) void debugv(char **args) { - size_t len, pos, buflen = 1024; + size_t len, pos = 0, buflen = 1024; char *buf; const char *str; @@ -59,6 +59,8 @@ void debugv(char **args) buf[pos++] = '\0'; - debug(stringify(PLUGINNAME) ": %s", buf); + t_buffer_alloc(pos); + + debug("%s", buf); t_pop(); } |