[TD-5169]<fix>: fixed a parsing bug

This commit is contained in:
xywang 2021-07-14 16:45:32 +08:00
parent e174669808
commit cf76ed44fe
1 changed files with 1 additions and 1 deletions

View File

@ -468,7 +468,7 @@ int32_t httpCheckAllocEscapeSql(char *oldSql, char **newSql)
src = ++pos;
pos = strchr(pos, '%');
if (pos == NULL) {
memcpy(dst, src, sqlLen - strlen(src));
memcpy(dst, src, strlen(src));
break;
}
}