[TD-6356]<fix>: Fix the crash in TS-187
This commit is contained in:
parent
07b5c9c94b
commit
9b06217571
|
@ -227,8 +227,7 @@ char* strntolower_s(char *dst, const char *src, int32_t n) {
|
||||||
|
|
||||||
assert(dst != NULL);
|
assert(dst != NULL);
|
||||||
if (n == 0) {
|
if (n == 0) {
|
||||||
*p = 0;
|
return NULL;
|
||||||
return dst;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
while (n-- > 0) {
|
while (n-- > 0) {
|
||||||
|
|
Loading…
Reference in New Issue