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?a=commitdiff_plain;h=7eaee18003314a215047d8db0a9cb4634191ea34;p=xboard.git 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)); }