From 5b1fde5ead60a8b4a3728c190b39027292c12b4c Mon Sep 17 00:00:00 2001 From: xionglei6 Date: Wed, 17 Nov 2021 19:37:18 +0800 Subject: [PATCH] init: fix bugs Signed-off-by: xionglei6 --- services/utils/init_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/utils/init_utils.c b/services/utils/init_utils.c index c775741f..ac2a52c8 100755 --- a/services/utils/init_utils.c +++ b/services/utils/init_utils.c @@ -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; -- GitLab