summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorRobin Houston <robin@cpan.org>2005-12-19 18:46:00 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-12-19 18:17:19 +0000
commit7b9ef14019d3c4d1aa14641dbd421c81c2cd18a4 (patch)
tree5069228d909a52c1423c3eb7067f78b74869b0ef /toke.c
parent25ae1130f781118f78fbcd7bd13d6c8f4f21734a (diff)
downloadperl-7b9ef14019d3c4d1aa14641dbd421c81c2cd18a4.tar.gz
Re: [PATCH] Make the 'sort' pragma lexically scoped
Message-ID: <20051219174620.GA17940@rpc142.cs.man.ac.uk> p4raw-id: //depot/perl@26402
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index ceb521fb44..1b07e56d06 100644
--- a/toke.c
+++ b/toke.c
@@ -468,7 +468,10 @@ STATIC bool
S_feature_is_enabled(pTHX_ char *name, STRLEN namelen)
{
HV * const hinthv = GvHV(PL_hintgv);
- return (hinthv && hv_exists(hinthv, name, namelen));
+ char he_name[32] = "feature_";
+ (void) strncpy(&he_name[8], name, 24);
+
+ return (hinthv && hv_exists(hinthv, he_name, 8 + namelen));
}
/*