#include "gui.h"
#include "main.h"
-// constants
-
-static const int StringSize = 4096;
-
// variables
gui_t GUI[1];
#ifdef SIGPIPE
signal(SIGPIPE,sig_pipe);
#endif
- pipex_open(gui->pipex,"GUI",NULL);
+ pipex_open(gui->pipex,"GUI",NULL,NULL);
}
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