strlcpy finish cleanup

remove strlcpy & strlcat from string.h

document suspicious strlcpy call

convert strlcat.h users to string-extra

Change-Id: I313e75db86385c0e6d1aee75d252093be4935f60
This commit is contained in:
William Wilgus 2022-11-15 11:24:34 -05:00
parent 0b7a387671
commit 972810f6cf
7 changed files with 6 additions and 9 deletions

View file

@ -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;