[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
- To: or-cvs@freehaven.net
- Subject: [or-cvs] make csv parsing notice the last letter of each entry too
- From: arma@seul.org (Roger Dingledine)
- Date: Tue, 17 Aug 2004 07:55:49 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Tue, 17 Aug 2004 07:56:00 -0400
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
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;