From 89a456a1d4a7317dbe3d53fdd58ca8694859a989 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 --- src/common/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } /*