[TD_543] fix coverity scan, cid:267752
This commit is contained in:
parent
73cdb81e12
commit
ac26d4ab4d
|
@ -313,7 +313,7 @@ bool tgGetPassFromUrl(HttpContext *pContext) {
|
||||||
return false;
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue