]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a fun bug in read_all that was corrupting config files on windows, and probably...
authorNick Mathewson <nickm@torproject.org>
Tue, 16 Nov 2004 00:08:56 +0000 (00:08 +0000)
committerNick Mathewson <nickm@torproject.org>
Tue, 16 Nov 2004 00:08:56 +0000 (00:08 +0000)
svn:r2898

src/common/util.c

index d62be23e6124a75593d18399cad92603fa4eabf3..f725c7c902ead9d88c69453e344a0eabb72bd80c 100644 (file)
@@ -693,7 +693,7 @@ int read_all(int fd, char *buf, size_t count, int isSocket) {
       break;
     numread += result;
   }
-  return count;
+  return numread;
 }
 
 /*