Replace my_strlcpy() with a pair of byte writes.
Nicholas Clark [Tue, 16 Oct 2007 10:39:38 +0000 (10:39 +0000)]
p4raw-id: //depot/perl@32115

sv.c

diff --git a/sv.c b/sv.c
index e5f7bea..2f2cef9 100644 (file)
--- 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