Fixed several bugs
git-svn-id: svn://svn.cc65.org/cc65/trunk@3328 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -342,7 +342,7 @@ void SB_VPrintf (StrBuf* S, const char* Format, va_list ap)
|
||||
* an allocation. If not, we have to reallocate and try again.
|
||||
*/
|
||||
va_copy (tmp, ap);
|
||||
SizeNeeded = xvsnprintf (S->Buf, S->Allocated, Format, ap);
|
||||
SizeNeeded = xvsnprintf (S->Buf, S->Allocated, Format, tmp);
|
||||
va_end (tmp);
|
||||
|
||||
/* Check the result, the xvsnprintf function should not fail */
|
||||
|
||||
Reference in New Issue
Block a user