[TD_543] fix coverity scan, cid:267752

This commit is contained in:
Shengliang Guan 2020-06-08 09:11:46 +00:00
parent 73cdb81e12
commit ac26d4ab4d
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ bool tgGetPassFromUrl(HttpContext *pContext) {
return false;
}
strcpy(pContext->pass, pParser->path[TG_PASS_URL_POS].pos);
tstrncpy(pContext->pass, pParser->path[TG_PASS_URL_POS].pos, TSDB_PASSWORD_LEN);
return true;
}