From 0bcb77a23497e36444f75c1e4e7e1817446f8616 Mon Sep 17 00:00:00 2001 From: Eugine Blikh <bigbes@gmail.com> Date: Fri, 13 Sep 2013 20:06:31 +0400 Subject: [PATCH] use strncmp instead of strcmp --- client/tarantool/tc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/tarantool/tc.c b/client/tarantool/tc.c index 8c7df4a30a..913ee37b88 100644 --- a/client/tarantool/tc.c +++ b/client/tarantool/tc.c @@ -109,7 +109,7 @@ static char *send_cmd(char *cmd) tc_error("cannot send query"); if (tc_admin_reply(&tc.admin, &reply, &size) == -1) tc_error("cannot recv query"); - if (strcmp(reply, TC_ERR_CMD) == 0) { + if (strncmp(reply, TC_ERR_CMD, size) == 0) { free(reply); return NULL; } -- GitLab