···13871387 char sep[2] = {split_char, '\0'};
13881388 char *e, *p = strtok_r(str, sep, &e);
1389138913901390- /* *p in the condition takes care of trailing splitters */
13901390+ /* strtok takes care of leading & trailing splitters */
13911391 for(i = 0; i < vector_length; i++)
13921392 {
13931393 vector[i] = p;
+1
firmware/common/file_internal.c
···227227 return;
228228229229 char shortname[13];
230230+ /* this only gets called in the case of DOS (8.3) filenames */
230231 size_t len = strlcpy(shortname, d_name, sizeof (shortname));
231232 /* This MUST be the default codepage thus not something that could be
232233 loaded on call */
+1-1
firmware/common/strlcpy.c
···3434 if (d)
3535 return (d - dst - 1); /* count does not include NUL */
36363737- /* Not enough room in dst, add NUL and traverse rest of src */
3737+ /* Not enough room in dst, traverse rest of src */
3838 return(siz + strlen(src+siz)); /* count does not include NUL */
3939}