X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gnushogi%2Fmakepattern.c;h=fa2ee14baa0ea77e7f64b1312821ce6067c34938;hb=HEAD;hp=b42a4d16a8bafdafb5bded004113fc32fbc554d8;hpb=30506a3dc5336fb56fc3c1984af32eaf127bd748;p=gnushogi.git 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,