From b4b0462ea9eac4718cae3efc099579dcd14f2eed Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Wed, 25 Feb 2009 16:15:09 +0000 Subject: * Wrong variable being used in StringBuf_Vprintf. (follow up to r13386, fixes bugreport:2798) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13548 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/strlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common') diff --git a/src/common/strlib.c b/src/common/strlib.c index c0cc5b4ec..648a06d18 100644 --- a/src/common/strlib.c +++ b/src/common/strlib.c @@ -979,7 +979,7 @@ int StringBuf_Vprintf(StringBuf* self, const char* fmt, va_list ap) /* Try to print in the allocated space. */ size = self->max_ - (self->ptr_ - self->buf_); va_copy(apcopy, ap); - n = vsnprintf(self->ptr_, size, fmt, ap); + n = vsnprintf(self->ptr_, size, fmt, apcopy); va_end(apcopy); /* If that worked, return the length. */ if( n > -1 && n < size ) -- cgit v1.2.3-70-g09d2