diff options
author | Nicholas Clark <nick@ccl4.org> | 2004-07-19 08:33:13 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2004-07-19 08:33:13 +0000 |
commit | 689badd5a97f92b96d41abcba9996dc8da00c8a7 (patch) | |
tree | 1d88c03de3ec86592ecd672eb6a2c722bbe8a007 | |
parent | ef4d88dbc62415c6922ee52abf857500451ce7d9 (diff) | |
download | perl-689badd5a97f92b96d41abcba9996dc8da00c8a7.tar.gz |
Turn 2 strcpy()s into memcpy() because we know the length.
p4raw-id: //depot/perl@23135
-rw-r--r-- | toke.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6632,7 +6632,7 @@ S_scan_heredoc(pTHX_ register char *s) sv_setpvn(tmpstr,d+1,s-d); s += len - 1; sv_catpvn(herewas,s,bufend-s); - (void)strcpy(bufptr,SvPVX(herewas)); + Copy(SvPVX(herewas),bufptr,SvCUR(herewas) + 1,char); s = olds; goto retval; @@ -6802,7 +6802,7 @@ S_scan_inputsymbol(pTHX_ char *start) /* turn <> into <ARGV> */ if (!len) - (void)strcpy(d,"ARGV"); + Copy("ARGV",d,5,char); /* Check whether readline() is overriden */ if (((gv_readline = gv_fetchpv("readline", FALSE, SVt_PVCV)) |