[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] make csv parsing notice the last letter of each entry too



Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	config.c 
Log Message:
make csv parsing notice the last letter of each entry too


Index: config.c
===================================================================
RCS file: /home/or/cvsroot/src/or/config.c,v
retrieving revision 1.141
retrieving revision 1.142
diff -u -d -r1.141 -r1.142
--- config.c	17 Aug 2004 11:52:20 -0000	1.141
+++ config.c	17 Aug 2004 11:55:47 -0000	1.142
@@ -154,7 +154,7 @@
     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;