diff options
author | William Wilgus <wilgus.william@gmail.com> | 2022-11-15 11:24:34 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2022-11-17 01:54:46 -0500 |
commit | 972810f6cfd9715de1b182978c4d26e67dcf72cf (patch) | |
tree | 71b62ce1bb22cfb5ea8974667b0b74bb1697fe9e /apps/misc.c | |
parent | 0b7a387671a56a1b526b3672cd695b5764597f3e (diff) | |
download | rockbox-972810f6cfd9715de1b182978c4d26e67dcf72cf.tar.gz rockbox-972810f6cfd9715de1b182978c4d26e67dcf72cf.zip |
strlcpy finish cleanup
remove strlcpy & strlcat from string.h
document suspicious strlcpy call
convert strlcat.h users to string-extra
Change-Id: I313e75db86385c0e6d1aee75d252093be4935f60
Diffstat (limited to 'apps/misc.c')
-rw-r--r-- | apps/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
1387 | char sep[2] = {split_char, '\0'}; | 1387 | char sep[2] = {split_char, '\0'}; |
1388 | char *e, *p = strtok_r(str, sep, &e); | 1388 | char *e, *p = strtok_r(str, sep, &e); |
1389 | 1389 | ||
1390 | /* *p in the condition takes care of trailing splitters */ | 1390 | /* strtok takes care of leading & trailing splitters */ |
1391 | for(i = 0; i < vector_length; i++) | 1391 | for(i = 0; i < vector_length; i++) |
1392 | { | 1392 | { |
1393 | vector[i] = p; | 1393 | vector[i] = p; |