Revert "Fixed Build Failed - gcc 8.2.0"

This reverts commit c43947cfb1.
This commit is contained in:
Caesar Wang 2019-06-28 11:33:07 +08:00
parent 04dfeff18a
commit cd6053d277

View File

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