From 664200e644b45e52c70affa1c036d7366474ae9d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 19 Aug 2013 19:04:33 +0000 Subject: core *printf patch git-svn-id: http://svn.miranda-ng.org/main/trunk@5750 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/mir_core/json/NumberToString.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mir_core/json/NumberToString.h') diff --git a/src/mir_core/json/NumberToString.h b/src/mir_core/json/NumberToString.h index a260f1cb5c..a706372f92 100644 --- a/src/mir_core/json/NumberToString.h +++ b/src/mir_core/json/NumberToString.h @@ -78,9 +78,9 @@ public: static json_string _ftoa(T value){ json_char result[64]; #ifdef JSON_UNICODE - swprintf(result, 63, L"%f", value); + mir_snwprintf(result, 63, L"%f", value); #else - snprintf(result, 63, "%f", value); + mir_snprintf(result, 63, "%f", value); #endif //strip the trailing zeros for(json_char * pos = &result[0]; *pos; ++pos){ -- cgit v1.2.3