diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index 46d925d9f45deb5c5c38c3d661c040f952c91c2a..f83e7fe79dcdbafbe4927ff14bb6ad558fc37558 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -6326,7 +6326,7 @@ void tscPrintSelectClause(SSqlObj* pSql, int32_t subClauseIndex) { int32_t totalBufSize = 1024; - char str[1024] = {0}; + char str[1024+1] = {0}; int32_t offset = 0; offset += sprintf(str, "num:%d [", size);