From 972810f6cfd9715de1b182978c4d26e67dcf72cf Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Tue, 15 Nov 2022 11:24:34 -0500 Subject: strlcpy finish cleanup remove strlcpy & strlcat from string.h document suspicious strlcpy call convert strlcat.h users to string-extra Change-Id: I313e75db86385c0e6d1aee75d252093be4935f60 --- apps/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/misc.c') diff --git a/apps/misc.c b/apps/misc.c index fcdbb28fce..0bac986a6f 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -1387,7 +1387,7 @@ int split_string(char *str, const char split_char, char *vector[], const int vec char sep[2] = {split_char, '\0'}; char *e, *p = strtok_r(str, sep, &e); - /* *p in the condition takes care of trailing splitters */ + /* strtok takes care of leading & trailing splitters */ for(i = 0; i < vector_length; i++) { vector[i] = p; -- cgit v1.2.3