From 92e9670a1124823f86360f51a454c380601ea80c Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Fri, 17 Sep 2010 00:32:31 +0400 Subject: [PATCH] [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! --- src/shared/Util.cpp | 2 +- src/shared/revision_nr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/Util.cpp b/src/shared/Util.cpp index 36c9a1a15..fac2f2d53 100644 --- a/src/shared/Util.cpp +++ b/src/shared/Util.cpp @@ -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 diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 3e42f8ac3..73e8c39e4 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "10491" + #define REVISION_NR "10492" #endif // __REVISION_NR_H__