mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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:
parent
0b7a387671
commit
972810f6cf
7 changed files with 6 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue