Skip to content
Snippets Groups Projects
Commit 0bcb77a2 authored by Eugine Blikh's avatar Eugine Blikh
Browse files

use strncmp instead of strcmp

parent 3a0b40a6
No related branches found
No related tags found
No related merge requests found
...@@ -109,7 +109,7 @@ static char *send_cmd(char *cmd) ...@@ -109,7 +109,7 @@ static char *send_cmd(char *cmd)
tc_error("cannot send query"); tc_error("cannot send query");
if (tc_admin_reply(&tc.admin, &reply, &size) == -1) if (tc_admin_reply(&tc.admin, &reply, &size) == -1)
tc_error("cannot recv query"); tc_error("cannot recv query");
if (strcmp(reply, TC_ERR_CMD) == 0) { if (strncmp(reply, TC_ERR_CMD, size) == 0) {
free(reply); free(reply);
return NULL; return NULL;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment