summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2006-07-15 16:14:32 +0300
committerH.Merijn Brand <h.m.brand@xs4all.nl>2006-07-15 11:53:36 +0000
commitd130778686fc2c04eb7d731512df9e71304d5573 (patch)
tree74953202209cd3371cc54464d6300b2dea41d77a /sv.c
parent59bea8cf0bba843bea2b2a6c959c3fd1cf5e3075 (diff)
downloadperl-d130778686fc2c04eb7d731512df9e71304d5573.tar.gz
various safety/portability tweaks
Message-ID: <44B8C008.4030300@iki.fi> p4raw-id: //depot/perl@28578
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sv.c b/sv.c
index f2ad6d5215..065a29264b 100644
--- a/sv.c
+++ b/sv.c
@@ -2800,7 +2800,7 @@ Perl_sv_2pv_flags(pTHX_ register SV *sv, STRLEN *lp, I32 flags)
/* some Xenix systems wipe out errno here */
#ifdef apollo
if (SvNVX(sv) == 0.0)
- (void)strcpy(s,"0");
+ my_strlcpy(s, "0", SvLEN(sv));
else
#endif /*apollo*/
{
@@ -2809,7 +2809,7 @@ Perl_sv_2pv_flags(pTHX_ register SV *sv, STRLEN *lp, I32 flags)
errno = olderrno;
#ifdef FIXNEGATIVEZERO
if (*s == '-' && s[1] == '0' && !s[2])
- strcpy(s,"0");
+ my_strlcpy(s, "0", SvLEN(s));
#endif
while (*s) s++;
#ifdef hcx