fix: no snprintf on VS

This commit is contained in:
ac-stef
2015-05-27 15:47:04 +02:00
parent 6eb6407684
commit 07facdfcc2
+1 -1
View File
@@ -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;
}