提交 5b1fde5e 编写于 作者: X xionglei6

init: fix bugs

Signed-off-by: Nxionglei6 <xionglei6@huawei.com>
上级 2ba89831
......@@ -196,7 +196,7 @@ int SplitString(char *srcPtr, const char *del, char **dstPtr, int maxNum)
int counter = 0;
while (dstPtr[counter] != NULL && (counter < maxNum)) {
counter++;
dstPtr[counter] = strtok_r(NULL, " ", &buf);
dstPtr[counter] = strtok_r(NULL, del, &buf);
}
dstPtr[counter] = NULL;
return counter;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册