* Fixed a va_end using the wrong variable. (from r13383, fixes bugreport:2483)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13386 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
FlavioJS 2008-11-24 18:21:59 +00:00
parent 609da40fd7
commit 1ddbd85a25
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,8 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK. 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. 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 2008/11/22
* Readded code that was removed from atcommand_showmobs by mistake in the previous commit. (r13383) * Readded code that was removed from atcommand_showmobs by mistake in the previous commit. (r13383)
* Hunted down improper uses of va_list variables. * Hunted down improper uses of va_list variables.

View File

@ -969,7 +969,7 @@ int StringBuf_Vprintf(StringBuf* self, const char* fmt, va_list ap)
size = self->max_ - (self->ptr_ - self->buf_); size = self->max_ - (self->ptr_ - self->buf_);
va_copy(apcopy, ap); va_copy(apcopy, ap);
n = vsnprintf(self->ptr_, size, fmt, ap); n = vsnprintf(self->ptr_, size, fmt, ap);
va_end(ap); va_end(apcopy);
/* If that worked, return the length. */ /* If that worked, return the length. */
if( n > -1 && n < size ) if( n > -1 && n < size )
{ {