소스 검색

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 21 년 전
부모
커밋
89a456a1d4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
 }
 
 /*