From 07facdfcc2630e609f3f0a47b5183f113abd90a9 Mon Sep 17 00:00:00 2001 From: ac-stef Date: Sun, 10 May 2015 09:11:17 +0200 Subject: [PATCH] fix: no snprintf on VS --- source/src/command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/command.cpp b/source/src/command.cpp index 812c6424..f3857170 100644 --- a/source/src/command.cpp +++ b/source/src/command.cpp @@ -497,7 +497,7 @@ const char *floatstr(float v, bool neat) static int i = 0; if(i > MAXSTRLEN - 100) i = 0; char *t = s + i; - snprintf(t, 90, !neat && (v) == int(v) ? "%.1f" : "%.7g", v); // was ftoa() + sprintf(t, !neat && (v) == int(v) ? "%.1f" : "%.7g", v); // was ftoa() i += strlen(t) + 1; return t; }