[TD-5169]<fix>: fixed a parsing bug
This commit is contained in:
parent
e174669808
commit
cf76ed44fe
|
@ -468,7 +468,7 @@ int32_t httpCheckAllocEscapeSql(char *oldSql, char **newSql)
|
||||||
src = ++pos;
|
src = ++pos;
|
||||||
pos = strchr(pos, '%');
|
pos = strchr(pos, '%');
|
||||||
if (pos == NULL) {
|
if (pos == NULL) {
|
||||||
memcpy(dst, src, sqlLen - strlen(src));
|
memcpy(dst, src, strlen(src));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue