taos crash on windows issue

This commit is contained in:
dapan1121 2021-04-15 14:03:33 +08:00
parent 8b72cf391c
commit 0840dce0e0
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ void updateBuffer(Command *cmd) {
}
int isReadyGo(Command *cmd) {
char total[MAX_COMMAND_SIZE];
char *total = malloc(MAX_COMMAND_SIZE);
memset(total, 0, MAX_COMMAND_SIZE);
sprintf(total, "%s%s", cmd->buffer, cmd->command);