aboutsummaryrefslogtreecommitdiff
path: root/net/py-xmlrpc/files/patch-src_rpcUtils.c
blob: dd35fa0ed57bb85a1066a8003a562afa29790588 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

$FreeBSD$

--- src/rpcUtils.c.orig
+++ src/rpcUtils.c
@@ -276,7 +280,7 @@
 	double		d;
 
 	d = PyFloat_AS_DOUBLE(value);
-	snprintf(buff, 255, "%f", d);
+	snprintf(buff, 255, "%.17f", d);
 	if ((buffConstant(sp, "<double>") == NULL)
 	or  (buffConcat(sp, buff) == NULL)
 	or  (buffConstant(sp, "</double>") == NULL))