mirror of
https://github.com/ioquake/ioq3.git
synced 2025-06-02 01:42:12 +00:00
Replace a few sprintf with Com_sprintf
This commit is contained in:
parent
e0a2100df5
commit
eaaaa6f5fc
3 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue