diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-11-04 20:47:34 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-11-04 20:47:34 +0000 |
commit | 86c11942206ec09dd2a486bb22552aa2f170e322 (patch) | |
tree | da93ee724d8086efae3d2841ff113c9bcaa813f9 /universal.c | |
parent | ca563b4e7524b82fcbffcbe3344a4a9d20a7ab64 (diff) | |
download | perl-86c11942206ec09dd2a486bb22552aa2f170e322.tar.gz |
Use the return value from sprintf().
p4raw-id: //depot/perl@26001
Diffstat (limited to 'universal.c')
-rw-r--r-- | universal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/universal.c b/universal.c index 57b9481cd1..f8fa9cda88 100644 --- a/universal.c +++ b/universal.c @@ -602,8 +602,8 @@ XS(XS_version_qv) if ( SvNOK(ver) ) /* may get too much accuracy */ { char tbuf[64]; - sprintf(tbuf,"%.9"NVgf, SvNVX(ver)); - version = savepv(tbuf); + const STRLEN len = my_sprintf(tbuf,"%.9"NVgf, SvNVX(ver)); + version = savepvn(tbuf, len); } else { |