fixed a bug at SplitToStringListByEnter

This commit is contained in:
HuYingzhuo(hugo/hyzboy) 2023-01-04 16:56:12 +08:00
parent 4fdb3aab14
commit 8ba8b8aba3

View File

@ -358,7 +358,7 @@ namespace hgl
*/
template<typename T> int SplitToStringListByEnter(StringList<T> &sl,const T *str,int size)
{
const T sc[2]={T('\r'),T('\n')};
const T sc[]={T('\r'),T('\n'),0};
SplitStringToStringListByChars<T> split(&sl,sc);