diff options
author | Gisle Aas <gisle@activestate.com> | 2006-01-04 13:00:45 +0000 |
---|---|---|
committer | Gisle Aas <gisle@activestate.com> | 2006-01-04 13:00:45 +0000 |
commit | 1c5d1ca7ee89d1e1782f94ae9883de9a1052a87d (patch) | |
tree | d4467d134143050e200a207185eca9a7d86f74e8 /perl.c | |
parent | 396482e1e4786de2b4c8ab57cb613dc0f110b931 (diff) | |
download | perl-1c5d1ca7ee89d1e1782f94ae9883de9a1052a87d.tar.gz |
Get rid of a few more hardcoded string lengths.
p4raw-id: //depot/perl@26642
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3053,7 +3053,7 @@ Perl_moreswitches(pTHX_ char *s) Safefree(PL_inplace); #if defined(__CYGWIN__) /* do backup extension automagically */ if (*(s+1) == '\0') { - PL_inplace = savepv(".bak"); + PL_inplace = savepvn(STR_WITH_LEN(".bak")); return s+1; } #endif /* __CYGWIN__ */ @@ -3505,7 +3505,7 @@ S_open_script(pTHX_ const char *scriptname, bool dosearch, SV *sv) PL_suidscript = -1; if (PL_e_script) { - PL_origfilename = savepvn("-e", 2); + PL_origfilename = savepvn(STR_WITH_LEN("-e")); } else { /* if find_script() returns, it returns a malloc()-ed value */ |