fix:remove comma in db list

This commit is contained in:
wangmm0220 2024-06-24 12:56:28 +08:00
parent ed16b1e8db
commit d4149c9591
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ static void concatStrings(SArray *list, char* buf, int size){
strcat(buf, ","); strcat(buf, ",");
len += 1; len += 1;
} }
int ret = snprintf(buf + len, size - len, "%s,", db); int ret = snprintf(buf + len, size - len, "%s", db);
if (ret < 0) { if (ret < 0) {
tscError("snprintf failed, buf:%s, ret:%d", buf, ret); tscError("snprintf failed, buf:%s, ret:%d", buf, ret);
break; break;