Browse Source

Fix a fun bug in read_all that was corrupting config files on windows, and probably doing other bad stuff too.

svn:r2898
Nick Mathewson 20 years ago
parent
commit
89a456a1d4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/common/util.c

+ 1 - 1
src/common/util.c

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