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 /mro.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 'mro.c')
-rw-r--r-- | mro.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -840,8 +840,7 @@ XS(XS_mro_is_universal) classname = ST(0); - classname_pv = SvPV_nolen(classname); - classname_len = strlen(classname_pv); + classname_pv = SvPV(classname,classname_len); he = hv_fetch_ent(PL_isarev, classname, 0, 0); isarev = he ? (HV*)HeVAL(he) : NULL; |