diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-11-16 00:08:56 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-11-16 00:08:56 +0000 |
commit | 89a456a1d4a7317dbe3d53fdd58ca8694859a989 (patch) | |
tree | e0e26ddb63af1ac295d2f234cfe8ddcbd351f648 /src/common | |
parent | 014198e7586bed539b6dc827d7ef8be4e346cd7b (diff) | |
download | tor-89a456a1d4a7317dbe3d53fdd58ca8694859a989.tar.gz tor-89a456a1d4a7317dbe3d53fdd58ca8694859a989.zip |
Fix a fun bug in read_all that was corrupting config files on windows, and probably doing other bad stuff too.
svn:r2898
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } /* |