Fix -zippyVariants option
authorH.G. Muller <h.g.muller@hccnet.nl>
Tue, 27 Aug 2013 20:55:52 +0000 (22:55 +0200)
committerH.G. Muller <h.g.muller@hccnet.nl>
Tue, 27 Aug 2013 20:55:52 +0000 (22:55 +0200)
Due to the change of cps->variants from (char []) to (char *), copying
zippyVariants to it on behalf of v1 engines would no longer work. This
is fixed by using ASSIGN() in stead of safeStrCpy().

zippy.c

diff --git a/zippy.c b/zippy.c
index 9453c90..09e8c7d 100644 (file)
--- a/zippy.c
+++ b/zippy.c
@@ -200,7 +200,7 @@ ZippyInit ()
     if (p != NULL) {
       appData.zippyVariants = p;
     }
-    safeStrCpy(first.variants, appData.zippyVariants, sizeof(first.variants)/sizeof(first.variants[0]));
+    ASSIGN(first.variants, appData.zippyVariants);
 
     srandom(time(NULL));
 }