Browse Source

make csv parsing notice the last letter of each entry too

svn:r2261
Roger Dingledine 21 years ago
parent
commit
4c47e07a11
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/config.c

+ 1 - 1
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;