rev 168 - trunk/modules/Float

SVN User <[email protected]>
Newsgroups gmane.comp.lang.prothon.cvs
Message-ID <[email protected]>
Author: bcollins
Date: 2004-03-27 19:28:21 -0500 (Sat, 27 Mar 2004)
New Revision: 168

Modified:
   trunk/modules/Float/Float.c
Log:
Oops, missed one sprintf.


Modified: trunk/modules/Float/Float.c
===================================================================
--- trunk/modules/Float/Float.c	2004-03-28 00:25:27 UTC (rev 167)
+++ trunk/modules/Float/Float.c	2004-03-28 00:28:21 UTC (rev 168)
@@ -55,6 +55,9 @@
 
 #include <stdio.h>
 #include <math.h>
+
+#include <apr_strings.h>
+
 #include <prothon/prothon_dll.h>
 
 #define	FLOAT_DATA_SIZE		8
@@ -290,7 +293,7 @@
 
 DEF(FLOAT_PROTO_OBJ, __str__, NULL){
 	char str[1024];
-	sprintf(str, "%g", Float_value(self));
+	apr_snprintf(str, sizeof(str), "%g", Float_value(self));
 	return new_string_obj(str);
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.