Let XBoard propose name of tourney file
[xboard.git] / uci.c
diff --git a/uci.c b/uci.c
index ab2cea9..1f39f6a 100644 (file)
--- a/uci.c
+++ b/uci.c
 #include <stdlib.h>
 #include <string.h>
 
-#if HAVE_MALLOC_H
-  #include <malloc.h>
-#endif
-
 #include "common.h"
 #include "backend.h"
 Boolean GetArgValue(char *a);                          
@@ -40,6 +36,7 @@ void InitEngineUCI( const char * iniDir, ChessProgramState * cps )
         char *p, *q;
         char polyglotCommand[MSG_SIZ];
 
+        if(cps->isUCI == 2) p = appData.ucciAdapter; else
         p = appData.adapterCommand;
         q = polyglotCommand;
         while(*p) {