diff --git a/src/client/src/tscUtil.c b/src/client/src/tscUtil.c index 88615b074027045172ac05044049ddcf9cdbab76..9d44dd1cdcdc3a80b59a135d3540663ba6e7bfef 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -4274,7 +4274,7 @@ static int32_t doAddTableName(char* nextStr, char** str, SArray* pNameArray, SSq if (nextStr == NULL) { strncpy(tablename, *str, TSDB_TABLE_FNAME_LEN); - len = strlen(tablename); + len = (int32_t) strlen(tablename); } else { memcpy(tablename, *str, nextStr - (*str)); len = (int32_t)(nextStr - (*str));