From 1afcf706fa76e9d5d0ff7035b671a269a53014cf Mon Sep 17 00:00:00 2001
From: thilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>
Date: Mon, 1 Jun 2009 00:18:02 +0000
Subject: Replace a few sprintf with Com_sprintf

git-svn-id: svn://svn.icculus.org/quake3/trunk@1565 edf5b092-35ff-0310-97b2-ce42778d08ea
---
 code/botlib/l_struct.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'code/botlib')

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)
-- 
cgit v1.2.3