diff --git a/main.cpp b/main.cpp index f09e181..47d92c0 100644 --- a/main.cpp +++ b/main.cpp @@ -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); }