提交 ac26d4ab 编写于 作者: S Shengliang Guan

[TD_543] fix coverity scan, cid:267752

上级 73cdb81e
...@@ -313,7 +313,7 @@ bool tgGetPassFromUrl(HttpContext *pContext) { ...@@ -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;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册