summaryrefslogtreecommitdiff
path: root/src/common/strlib.c
diff options
context:
space:
mode:
authorFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-11-24 18:21:59 +0000
committerFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-11-24 18:21:59 +0000
commit61fc280e4049fdb70f73d684947295bcd29f6f96 (patch)
tree47caaaf2e95c771c8770f5addea0f4d0aa34b536 /src/common/strlib.c
parent943371d5abcbaad9e653c37c955e62be98a6d5f2 (diff)
downloadhercules-61fc280e4049fdb70f73d684947295bcd29f6f96.tar.gz
hercules-61fc280e4049fdb70f73d684947295bcd29f6f96.tar.bz2
hercules-61fc280e4049fdb70f73d684947295bcd29f6f96.tar.xz
hercules-61fc280e4049fdb70f73d684947295bcd29f6f96.zip
* 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
Diffstat (limited to 'src/common/strlib.c')
-rw-r--r--src/common/strlib.c2
1 files changed, 1 insertions, 1 deletions
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 )
{