aboutsummaryrefslogtreecommitdiffstats
path: root/code/botlib/l_struct.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/botlib/l_struct.c')
-rw-r--r--code/botlib/l_struct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/code/botlib/l_struct.c b/code/botlib/l_struct.c
index 303ecaa..d948dc3 100644
--- a/code/botlib/l_struct.c
+++ b/code/botlib/l_struct.c
@@ -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)