[10492] Fixed crash in debug output for some data.

It well known at account data loading if character/account have
in account data string look like pritf format string (with %s for example)

Thanks for research porblem to jwo@lighthouseapp.com!
This commit is contained in:
VladimirMangos 2010-09-17 00:32:31 +04:00
parent d83a7dbcd9
commit 92e9670a11
2 changed files with 2 additions and 2 deletions

View file

@ -464,7 +464,7 @@ void vutf8printf(FILE *out, const char *str, va_list* ap)
Utf8toWStr(temp_buf, temp_len, wtemp_buf, wtemp_len); Utf8toWStr(temp_buf, temp_len, wtemp_buf, wtemp_len);
CharToOemBuffW(&wtemp_buf[0], &temp_buf[0], wtemp_len+1); CharToOemBuffW(&wtemp_buf[0], &temp_buf[0], wtemp_len+1);
fprintf(out, temp_buf); fprintf(out, "%s", temp_buf);
#else #else
vfprintf(out, str, *ap); vfprintf(out, str, *ap);
#endif #endif

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "10491" #define REVISION_NR "10492"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__