mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[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:
parent
d83a7dbcd9
commit
92e9670a11
2 changed files with 2 additions and 2 deletions
|
|
@ -464,7 +464,7 @@ void vutf8printf(FILE *out, const char *str, va_list* ap)
|
|||
Utf8toWStr(temp_buf, temp_len, wtemp_buf, wtemp_len);
|
||||
|
||||
CharToOemBuffW(&wtemp_buf[0], &temp_buf[0], wtemp_len+1);
|
||||
fprintf(out, temp_buf);
|
||||
fprintf(out, "%s", temp_buf);
|
||||
#else
|
||||
vfprintf(out, str, *ap);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue