[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Fix a fun bug in read_all that was corrupting config files ...
- To: or-cvs@freehaven.net
- Subject: [or-cvs] Fix a fun bug in read_all that was corrupting config files ...
- From: nickm@seul.org (Nick Mathewson)
- Date: Mon, 15 Nov 2004 19:08:58 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Mon, 15 Nov 2004 19:09:14 -0500
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
Update of /home/or/cvsroot/tor/src/common
In directory moria.mit.edu:/tmp/cvs-serv22010/src/common
Modified Files:
util.c
Log Message:
Fix a fun bug in read_all that was corrupting config files on windows, and probably doing other bad stuff too.
Index: util.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/util.c,v
retrieving revision 1.180
retrieving revision 1.181
diff -u -d -r1.180 -r1.181
--- util.c 12 Nov 2004 21:14:51 -0000 1.180
+++ util.c 16 Nov 2004 00:08:56 -0000 1.181
@@ -693,7 +693,7 @@
break;
numread += result;
}
- return count;
+ return numread;
}
/*