summaryrefslogtreecommitdiff
path: root/src/uci/response.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/uci/response.c')
-rw-r--r--src/uci/response.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/uci/response.c b/src/uci/response.c
index a7e53fd..83a8ee1 100644
--- a/src/uci/response.c
+++ b/src/uci/response.c
@@ -3,8 +3,8 @@
#include <stdlib.h>
#include "response.h"
-#include "fen.h"
-#include "bitboard.h"
+#include "../fen.h"
+#include "../bitboard.h"
void apply_option(uci_state *state, char *name, char *buffer) {
int settings_count = sizeof(state->option_settings)/sizeof(option_setting_t);
@@ -151,7 +151,7 @@ void handle_idle(uci_state *state, ucicmd cmd) {
} else { assert(0); }
if (cmd.args_count >= k) return;
- assert(ucicmd_get_arg(cmd, k++), "moves") == 0);
+ assert(strcmp(ucicmd_get_arg(cmd, k++), "moves") == 0);
struct uci_move *moves = malloc((cmd.args_count - k) * sizeof(struct uci_move));
int l = 0;
for (; k < cmd.args_count; k++) {