Replace a few sprintf with Com_sprintf

This commit is contained in:
Thilo Schulz 2009-06-01 00:18:02 +00:00
parent e0a2100df5
commit eaaaa6f5fc
3 changed files with 5 additions and 5 deletions

View file

@ -346,7 +346,7 @@ int WriteFloat(FILE *fp, float value)
char buf[128];
int l;
sprintf(buf, "%f", value);
Com_sprintf(buf, sizeof(buf), "%f", value);
l = strlen(buf);
//strip any trailing zeros
while(l-- > 1)