From bc645dec19cc52faf81fa1cab5ca62b35084f134 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 16 Nov 2004 00:08:56 +0000 Subject: [PATCH] Fix a fun bug in read_all that was corrupting config files on windows, and probably doing other bad stuff too. svn:r2898 --- trunk/src/common/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/src/common/util.c b/trunk/src/common/util.c index d62be23e61..f725c7c902 100644 --- a/trunk/src/common/util.c +++ b/trunk/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; } /*