Pārlūkot izejas kodu

* Wrong variable being used in StringBuf_Vprintf. (follow up to r13386, fixes bugreport:2798)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13548 54d463be-8e91-2dee-dedb-b68131a5f0ec
FlavioJS 16 gadi atpakaļ
vecāks
revīzija
14cbb64848
2 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 2 0
      Changelog-Trunk.txt
  2. 1 1
      src/common/strlib.c

+ 2 - 0
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.
 
+2009/02/25
+	* Wrong variable being used in StringBuf_Vprintf. (follow up to r13386, fixes bugreport:2798) [FlavioJS]
 2009/02/23
 	* Made mob_delayspawn check the spawn_timer in the mob. [FlavioJS]
 	* Added missing delete_timer's every time spawn_timer is being set. (except when allocating)

+ 1 - 1
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 )