X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=util.c;h=873ed2f2dc78d0bbd082f5444e04abed9595b4dd;hb=446bfd706349c3e1f19916a16558a2f4f7dc8e54;hp=0d75adfa88939dfcb2edc7f07c53ebaace3d24b5;hpb=a0f731f21d6aa26dbf7246039a1c66c2ade0533f;p=polyglot.git diff --git a/util.c b/util.c index 0d75adf..873ed2f 100644 --- a/util.c +++ b/util.c @@ -18,7 +18,9 @@ #include #include #include +#ifndef _MSC_VER #include +#endif #include "main.h" #include "util.h" @@ -187,8 +189,8 @@ void my_fatal(const char format[], ...) { CONSTRUCT_ARG_STRING(format,string); - fprintf(stderr,format,string); - if (LogFile != NULL) fprintf(LogFile,format,&string); + fprintf(stderr,"%s",string); + if (LogFile != NULL) fprintf(LogFile,"%s",string); if (Error) { // recursive error my_log("POLYGLOT *** RECURSIVE ERROR ***\n");