X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gui.c;h=44abc377eb75fcc694f5631afae272c2e3ef7013;hb=1087eb7b2d8447adf9a7deb549d4004a87b46b10;hp=9dbe6f5867f4f136c8a16d499adc552ad3076a44;hpb=e15efca6667b2673b4c1a5879a6917eab6800e58;p=polyglot.git diff --git a/gui.c b/gui.c index 9dbe6f5..44abc37 100644 --- a/gui.c +++ b/gui.c @@ -52,7 +52,7 @@ void gui_init(gui_t *gui){ #ifdef SIGPIPE signal(SIGPIPE,sig_pipe); #endif - pipex_open(gui->pipex,"GUI",NULL); + pipex_open(gui->pipex,"GUI",NULL,NULL); } @@ -84,17 +84,14 @@ void gui_get(gui_t * gui, char *string) { void gui_send(gui_t * gui, const char format[], ...) { - va_list arg_list; - char string[StringSize]; + char string[FormatBufferSize]; ASSERT(gui!=NULL); ASSERT(format!=NULL); // format - va_start(arg_list,format); - vsprintf(string,format,arg_list); - va_end(arg_list); + CONSTRUCT_ARG_STRING(format,string); // send