Re: [patch] re_dup
Abhijit Menon-Sen [Fri, 13 Jul 2001 21:41:09 +0000 (02:41 +0530)]
Message-ID: <20010713214109.A3328@lustre.dyn.wiw.org>

p4raw-id: //depot/perl@11361

sv.c

diff --git a/sv.c b/sv.c
index b47bfa0..09832cf 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -8368,7 +8368,7 @@ Perl_re_dup(pTHX_ REGEXP *r, clone_params *param)
 
     if (r->regstclass) {
        New(0, ret->regstclass, 1, regnode);
-       Copy(r->regstclass, ret->regstclass, 1, regnode);
+       StructCopy(r->regstclass, ret->regstclass, regnode);
     }
     else
        ret->regstclass = NULL;