]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
make csv parsing notice the last letter of each entry too
authorRoger Dingledine <arma@torproject.org>
Tue, 17 Aug 2004 11:55:47 +0000 (11:55 +0000)
committerRoger Dingledine <arma@torproject.org>
Tue, 17 Aug 2004 11:55:47 +0000 (11:55 +0000)
svn:r2261

src/or/config.c

index 27bb3faf03613b620a4140c29483d0b6712ad48b..716fb4d5c650a08db4b397c19322d5f209e4c8c0 100644 (file)
@@ -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;