From 61fc280e4049fdb70f73d684947295bcd29f6f96 Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Mon, 24 Nov 2008 18:21:59 +0000 Subject: * Fixed a va_end using the wrong variable. (from r13383, fixes bugreport:2483) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13386 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 2 ++ src/common/strlib.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 4f1430d6a..98de4f419 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -3,6 +3,8 @@ Date Added AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. +2008/11/24 + * Fixed a va_end using the wrong variable. (from r13383, fixes bugreport:2483) [FlavioJS] 2008/11/22 * Readded code that was removed from atcommand_showmobs by mistake in the previous commit. (r13383) * Hunted down improper uses of va_list variables. diff --git a/src/common/strlib.c b/src/common/strlib.c index 5580124e1..cdb092cfa 100644 --- a/src/common/strlib.c +++ b/src/common/strlib.c @@ -969,7 +969,7 @@ int StringBuf_Vprintf(StringBuf* self, const char* fmt, va_list ap) size = self->max_ - (self->ptr_ - self->buf_); va_copy(apcopy, ap); n = vsnprintf(self->ptr_, size, fmt, ap); - va_end(ap); + va_end(apcopy); /* If that worked, return the length. */ if( n > -1 && n < size ) { -- cgit v1.2.3-70-g09d2