From: Nick Mathewson Date: Tue, 16 Nov 2004 00:08:56 +0000 (+0000) Subject: Fix a fun bug in read_all that was corrupting config files on windows, and probably... X-Git-Tag: tor-0.0.9pre6~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89a456a1d4a7317dbe3d53fdd58ca8694859a989;p=thirdparty%2Ftor.git Fix a fun bug in read_all that was corrupting config files on windows, and probably doing other bad stuff too. svn:r2898 --- diff --git a/src/common/util.c b/src/common/util.c index d62be23e61..f725c7c902 100644 --- a/src/common/util.c +++ b/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; } /*