diff options
author | rjung <rjung@13f79535-47bb-0310-9956-ffa450edef68> | 2011-07-29 17:30:07 +0000 |
---|---|---|
committer | rjung <rjung@13f79535-47bb-0310-9956-ffa450edef68> | 2011-07-29 17:30:07 +0000 |
commit | 5e6d1ae3b6a9872b809c4488753d1ff75705a638 (patch) | |
tree | 464de151ccfc58424cfee72108db078855ca6e8c /strings | |
parent | f22c4e38355b780a1c2b348698d6da1201a944c9 (diff) | |
download | libapr-5e6d1ae3b6a9872b809c4488753d1ff75705a638.tar.gz |
Fix flag character '#' in combination with format
character 'x' in apr snprintf implementations.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1152310 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'strings')
-rw-r--r-- | strings/apr_snprintf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/strings/apr_snprintf.c b/strings/apr_snprintf.c index 7c1aee52e..6a689a614 100644 --- a/strings/apr_snprintf.c +++ b/strings/apr_snprintf.c @@ -704,7 +704,7 @@ APR_DECLARE(int) apr_vformatter(int (*flush_func)(apr_vformatter_buff_t *), apr_int64_t i_quad = 0; apr_uint64_t ui_quad; apr_int32_t i_num = 0; - apr_uint32_t ui_num; + apr_uint32_t ui_num = 0; char num_buf[NUM_BUF_SIZE]; char char_buf[2]; /* for printing %% and %<unknown> */ @@ -959,7 +959,7 @@ APR_DECLARE(int) apr_vformatter(int (*flush_func)(apr_vformatter_buff_t *), &num_buf[NUM_BUF_SIZE], &s_len); } FIX_PRECISION(adjust_precision, precision, s, s_len); - if (alternate_form && i_num != 0) { + if (alternate_form && ui_num != 0) { *--s = *fmt; /* 'x' or 'X' */ *--s = '0'; s_len += 2; |