mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
make csv parsing notice the last letter of each entry too
svn:r2261
This commit is contained in:
parent
0131d94a6c
commit
4c47e07a11
@ -154,7 +154,7 @@ static void parse_csv_into_smartlist(smartlist_t *lst, const char *val)
|
||||
tor_assert(cp <= end);
|
||||
tor_assert(*end == '\0' || *end == ',');
|
||||
tor_assert((!isspace(*start) && !isspace(*cp)) || start==cp);
|
||||
smartlist_add(lst, tor_strndup(start, cp-start));
|
||||
smartlist_add(lst, tor_strndup(start, cp-start+1));
|
||||
if (!*end)
|
||||
break;
|
||||
cp = end+1;
|
||||
|
Loading…
Reference in New Issue
Block a user