From: H.G. Muller Date: Tue, 27 Aug 2013 20:55:52 +0000 (+0200) Subject: Fix -zippyVariants option X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=42e082f4052f89c0dc29c9f04054bee3b31588fe Fix -zippyVariants option 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(). --- diff --git a/zippy.c b/zippy.c index 9453c90..09e8c7d 100644 --- 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)); }