From: Nicholas Clark Date: Tue, 16 Oct 2007 10:39:38 +0000 (+0000) Subject: Replace my_strlcpy() with a pair of byte writes. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=20773dcda05c239bb7300f7eed1a0ff4ef022a0a;p=p5sagit%2Fp5-mst-13.2.git Replace my_strlcpy() with a pair of byte writes. p4raw-id: //depot/perl@32115 --- diff --git a/sv.c b/sv.c index e5f7bea..2f2cef9 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