summaryrefslogtreecommitdiff
path: root/universal.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2006-05-13 01:28:49 +0300
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-05-12 20:57:07 +0000
commitd9fad198da41e1cd37600ae397146e27a413303d (patch)
tree79dab04c73d50aa2a12e95f128a8cc3361ec5908 /universal.c
parent54f961c9c7fe5166a70653b44c67c26122bfc1fd (diff)
downloadperl-d9fad198da41e1cd37600ae397146e27a413303d.tar.gz
Re: [PATCH] my_snprintf
Message-ID: <4464E1F1.9010706@gmail.com> p4raw-id: //depot/perl@28183
Diffstat (limited to 'universal.c')
-rw-r--r--universal.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/universal.c b/universal.c
index 21f2c541d9..266613ed49 100644
--- a/universal.c
+++ b/universal.c
@@ -622,11 +622,7 @@ XS(XS_version_qv)
if ( SvNOK(ver) ) /* may get too much accuracy */
{
char tbuf[64];
-#ifdef USE_SNPRINTF
- const STRLEN len = snprintf(tbuf, sizeof(tbuf), "%.9"NVgf, SvNVX(ver));
-#else
- const STRLEN len = my_sprintf(tbuf, "%.9"NVgf, SvNVX(ver));
-#endif /* #ifdef USE_SNPRINTF */
+ const STRLEN len = my_snprintf(tbuf, sizeof(tbuf), "%.9"NVgf, SvNVX(ver));
version = savepvn(tbuf, len);
}
else