summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorGisle Aas <gisle@activestate.com>2006-01-04 13:53:16 +0000
committerGisle Aas <gisle@activestate.com>2006-01-04 13:53:16 +0000
commit6a245ed1e7ef6f728779f8328fb52e42b1aa0b8c (patch)
tree2b22d2ba828e88be62274986b1e187fcf3861313 /mg.c
parent359e8da2ef248b0ae5eba7c150226268a764452f (diff)
downloadperl-6a245ed1e7ef6f728779f8328fb52e42b1aa0b8c.tar.gz
Get rid of a few more hardcoded string lengths.
p4raw-id: //depot/perl@26645
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mg.c b/mg.c
index 3478b410dc..f13dd36f78 100644
--- a/mg.c
+++ b/mg.c
@@ -1444,7 +1444,7 @@ Perl_magic_setsig(pTHX_ SV *sv, MAGIC *mg)
* tell whether HINT_STRICT_REFS is in force or not.
*/
if (!strchr(s,':') && !strchr(s,'\''))
- sv_insert(sv, 0, 0, "main::", 6);
+ sv_insert(sv, 0, 0, STR_WITH_LEN("main::"));
if (i)
(void)rsignal(i, PL_csighandlerp);
else