diff options
author | jim <jim@13f79535-47bb-0310-9956-ffa450edef68> | 2002-03-14 16:29:51 +0000 |
---|---|---|
committer | jim <jim@13f79535-47bb-0310-9956-ffa450edef68> | 2002-03-14 16:29:51 +0000 |
commit | fd1790000c8762a857bdd0748df4e109f8271d7b (patch) | |
tree | 1f05165e9daad93c5648930b66908a1ffb8369f0 /strings/apr_snprintf.c | |
parent | 101fdfd14031ce87d02c575179e4a387c9ef187c (diff) | |
download | libapr-fd1790000c8762a857bdd0748df4e109f8271d7b.tar.gz |
PR: 9932 (apache 1.3)
Obtained from:
Submitted by: Joshua Colvin <joshua@jammed.com>
Reviewed by: Martin Kraemer, Jim Jagielski
Bring up fix from 1.3 patch
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63121 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'strings/apr_snprintf.c')
-rw-r--r-- | strings/apr_snprintf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/strings/apr_snprintf.c b/strings/apr_snprintf.c index 412368c86..888d13054 100644 --- a/strings/apr_snprintf.c +++ b/strings/apr_snprintf.c @@ -1190,6 +1190,10 @@ APR_DECLARE(int) apr_vformatter(int (*flush_func)(apr_vformatter_buff_t *), fmt++; } vbuff->curpos = sp; + if (sp >= bep) { + if (flush_func(vbuff)) + return -1; + } return cc; } |