diff options
author | Robin Houston <robin@cpan.org> | 2005-12-19 18:46:00 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-12-19 18:17:19 +0000 |
commit | 7b9ef14019d3c4d1aa14641dbd421c81c2cd18a4 (patch) | |
tree | 5069228d909a52c1423c3eb7067f78b74869b0ef /toke.c | |
parent | 25ae1130f781118f78fbcd7bd13d6c8f4f21734a (diff) | |
download | perl-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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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)); } /* |