[TD_543] fix coverity scan, cid:267815

This commit is contained in:
Shengliang Guan 2020-06-08 14:27:37 +00:00
parent 03ee481d76
commit 0f928893e0
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@ bool tgGetUserFromUrl(HttpContext *pContext) {
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;
}