[TD_543] fix coverity scan, cid:267815
This commit is contained in:
parent
03ee481d76
commit
0f928893e0
|
@ -303,7 +303,7 @@ bool tgGetUserFromUrl(HttpContext *pContext) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
strcpy(pContext->user, pParser->path[TG_USER_URL_POS].pos);
|
tstrncpy(pContext->user, pParser->path[TG_USER_URL_POS].pos, TSDB_USER_LEN);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue