summaryrefslogtreecommitdiff
path: root/strings/apr_snprintf.c
diff options
context:
space:
mode:
authorjim <jim@13f79535-47bb-0310-9956-ffa450edef68>2002-03-14 16:29:51 +0000
committerjim <jim@13f79535-47bb-0310-9956-ffa450edef68>2002-03-14 16:29:51 +0000
commitfd1790000c8762a857bdd0748df4e109f8271d7b (patch)
tree1f05165e9daad93c5648930b66908a1ffb8369f0 /strings/apr_snprintf.c
parent101fdfd14031ce87d02c575179e4a387c9ef187c (diff)
downloadlibapr-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.c4
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;
}