X-Git-Url: http://winboard.nl/cgi-bin?p=gnushogi.git;a=blobdiff_plain;f=gnushogi%2Fmakepattern.c;h=fa2ee14baa0ea77e7f64b1312821ce6067c34938;hp=b42a4d16a8bafdafb5bded004113fc32fbc554d8;hb=b8e35b1d447cee3c38bc8177ea8609360a88872d;hpb=96253e9fec23f465f064dfbe1ae469d03c1d3267 diff --git a/gnushogi/makepattern.c b/gnushogi/makepattern.c index b42a4d1..fa2ee14 100644 --- a/gnushogi/makepattern.c +++ b/gnushogi/makepattern.c @@ -43,9 +43,12 @@ small_short pattern_data[MAX_PATTERN_DATA]; /* minimal ShowMessage to avoid dependency on extraneous display code */ static void -Dummy_ShowMessage(char *s) +Dummy_ShowMessage(char *format, ...) { - printf("%s\n", s); + va_list ap; + va_start(ap, format); + vprintf(format, ap); + va_end(ap); } static struct display dummydsp = { .ShowMessage = Dummy_ShowMessage,