diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2011-10-11 02:25:00 +0200 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2011-10-11 02:25:00 +0200 |
commit | cce85c819b4a9c20562f7860cbe2a8020123ebff (patch) | |
tree | 2395de88ff4de509e56bdd933932bc5b8508084e /src/common/util.c | |
parent | 6a673ad31387928e4309b72204292000a3cd3b83 (diff) | |
download | tor-cce85c819b4a9c20562f7860cbe2a8020123ebff.tar.gz tor-cce85c819b4a9c20562f7860cbe2a8020123ebff.zip |
Fix a compile warning on OS X 10.6 and up
Diffstat (limited to 'src/common/util.c')
-rw-r--r-- | src/common/util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c index 9df7a5031f..79e09e4f59 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -3894,7 +3894,9 @@ get_string_from_pipe(FILE *stream, char *buf_out, size_t count) char *retval; size_t len; - retval = fgets(buf_out, count, stream); + tor_assert(count <= INT_MAX); + + retval = fgets(buf_out, (int)count, stream); if (!retval) { if (feof(stream)) { |