diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-10-12 15:21:14 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-10-12 15:21:14 +0000 |
commit | cfff97972660a620adf7d1f4616e4a60f0c7dd32 (patch) | |
tree | 3fe8e4290e9432fd0df35d507647ebb25de2a825 /doio.c | |
parent | 144c260c66e91246a2209df42a430484ee2d6ad4 (diff) | |
download | perl-cfff97972660a620adf7d1f4616e4a60f0c7dd32.tar.gz |
Remove some strlen()s and replace one strlcpy() with memcpy() because
we already know the string length.
p4raw-id: //depot/perl@32105
Diffstat (limited to 'doio.c')
-rw-r--r-- | doio.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1439,7 +1439,7 @@ Perl_do_exec3(pTHX_ const char *incmd, int fd, int do_report) const Size_t cmdlen = strlen(incmd) + 1; Newx(buf, cmdlen, char); cmd = buf; - my_strlcpy(cmd, incmd, cmdlen); + memcpy(cmd, incmd, cmdlen); while (*cmd && isSPACE(*cmd)) cmd++; |