You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2017/02/21 15:18:56 UTC
[trafficserver] 01/02: Fix textBuffer va_args handling.
This is an automated email from the ASF dual-hosted git repository.
jpeach pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git
commit 5cf4af4c7417c97ca2398f96987b7fcf4f5b345a
Author: James Peach <jp...@apache.org>
AuthorDate: Tue Feb 21 07:08:36 2017 -0800
Fix textBuffer va_args handling.
---
lib/ts/TextBuffer.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/ts/TextBuffer.cc b/lib/ts/TextBuffer.cc
index 0811e77..f5de8e3 100644
--- a/lib/ts/TextBuffer.cc
+++ b/lib/ts/TextBuffer.cc
@@ -242,7 +242,7 @@ textBuffer::vformat(const char *fmt, va_list ap)
num = vsnprintf(this->nextAdd, this->spaceLeft, fmt, args);
- va_end(ap);
+ va_end(args);
if ((unsigned)num < this->spaceLeft) {
// We had enough space to format including the NUL. Since the returned character
--
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.