diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-10-16 10:39:38 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-10-16 10:39:38 +0000 |
commit | 20773dcda05c239bb7300f7eed1a0ff4ef022a0a (patch) | |
tree | 240aa4fc44ff830ec8ba2fd73324327c55733df9 | |
parent | 4a731d7b697551fe227bb3efe87565699446d220 (diff) | |
download | perl-20773dcda05c239bb7300f7eed1a0ff4ef022a0a.tar.gz |
Replace my_strlcpy() with a pair of byte writes.
p4raw-id: //depot/perl@32115
-rw-r--r-- | sv.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |