summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-10-16 10:39:38 +0000
committerNicholas Clark <nick@ccl4.org>2007-10-16 10:39:38 +0000
commit20773dcda05c239bb7300f7eed1a0ff4ef022a0a (patch)
tree240aa4fc44ff830ec8ba2fd73324327c55733df9
parent4a731d7b697551fe227bb3efe87565699446d220 (diff)
downloadperl-20773dcda05c239bb7300f7eed1a0ff4ef022a0a.tar.gz
Replace my_strlcpy() with a pair of byte writes.
p4raw-id: //depot/perl@32115
-rw-r--r--sv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sv.c b/sv.c
index e5f7beaf4b..2f2cef9591 100644
--- a/sv.c
+++ b/sv.c
@@ -2769,8 +2769,10 @@ Perl_sv_2pv_flags(pTHX_ register SV *sv, STRLEN *lp, I32 flags)
}
errno = olderrno;
#ifdef FIXNEGATIVEZERO
- if (*s == '-' && s[1] == '0' && !s[2])
- my_strlcpy(s, "0", SvLEN(s));
+ if (*s == '-' && s[1] == '0' && !s[2]) {
+ s[0] = '0';
+ s[1] = 0;
+ }
#endif
while (*s) s++;
#ifdef hcx