[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 ...



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;
 }
 
 /*