aboutsummaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-08-17 11:55:47 +0000
committerRoger Dingledine <arma@torproject.org>2004-08-17 11:55:47 +0000
commit4c47e07a11dfbd99d1549c9f737224455b751e30 (patch)
treea0eeea686ac263268b8a9f9ac547ce209b1d8b82 /src/or/config.c
parent0131d94a6c7759e0160b946aea2d341eb06dead3 (diff)
downloadtor-4c47e07a11dfbd99d1549c9f737224455b751e30.tar
tor-4c47e07a11dfbd99d1549c9f737224455b751e30.tar.gz
make csv parsing notice the last letter of each entry too
svn:r2261
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 27bb3faf0..716fb4d5c 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;