Merge pull request #31 from KL-Yang/master

Fixed Build Failure - gcc 8.2.0
This commit is contained in:
Open Source Software for Rockchip SoCs(moved to https://github.com/rockchip-linux/) 2019-06-28 11:27:23 +08:00 committed by GitHub
commit cb608d8803
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2838,7 +2838,7 @@ void split_item(STRING_VECTOR &vecItems, char *pszItems)
}
if (strlen(pStart) > 0) {
memset(szItem, 0, 100);
strncpy(szItem, pStart, strlen(pStart));
strncpy(szItem, pStart, 100-1);
strItem = szItem;
vecItems.push_back(strItem);
}