diff options
author | martin <martin@13f79535-47bb-0310-9956-ffa450edef68> | 2003-06-20 12:56:52 +0000 |
---|---|---|
committer | martin <martin@13f79535-47bb-0310-9956-ffa450edef68> | 2003-06-20 12:56:52 +0000 |
commit | 3081ab70b6d08b217c6479061199bd734274c7cc (patch) | |
tree | d49f0693a6e54a09bf993c34bb747c4ef5f4a241 /strings/apr_snprintf.c | |
parent | aa342d90e45982a5e237a0f8a7d7748219ea8cb7 (diff) | |
download | libapr-3081ab70b6d08b217c6479061199bd734274c7cc.tar.gz |
In the case of invalid %p formats, skip the bogus argument too when skipping the false format item
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64545 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'strings/apr_snprintf.c')
-rw-r--r-- | strings/apr_snprintf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/strings/apr_snprintf.c b/strings/apr_snprintf.c index dbf8a473a..cab365936 100644 --- a/strings/apr_snprintf.c +++ b/strings/apr_snprintf.c @@ -1218,6 +1218,7 @@ APR_DECLARE(int) apr_vformatter(int (*flush_func)(apr_vformatter_buff_t *), s = "bogus %p"; s_len = 8; prefix_char = NUL; + (void)va_arg(ap, void *); /* skip the bogus argument on the stack */ break; } break; |