From: Roger Dingledine Date: Tue, 17 Aug 2004 11:55:47 +0000 (+0000) Subject: make csv parsing notice the last letter of each entry too X-Git-Tag: tor-0.0.8rc1~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c47e07a11dfbd99d1549c9f737224455b751e30;p=thirdparty%2Ftor.git make csv parsing notice the last letter of each entry too svn:r2261 --- diff --git a/src/or/config.c b/src/or/config.c index 27bb3faf03..716fb4d5c6 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -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;