aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2011-10-11 02:25:00 +0200
committerSebastian Hahn <sebastian@torproject.org>2011-10-11 02:25:00 +0200
commitcce85c819b4a9c20562f7860cbe2a8020123ebff (patch)
tree2395de88ff4de509e56bdd933932bc5b8508084e /src
parent6a673ad31387928e4309b72204292000a3cd3b83 (diff)
downloadtor-cce85c819b4a9c20562f7860cbe2a8020123ebff.tar
tor-cce85c819b4a9c20562f7860cbe2a8020123ebff.tar.gz
Fix a compile warning on OS X 10.6 and up
Diffstat (limited to 'src')
-rw-r--r--src/common/util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 9df7a5031..79e09e4f5 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)) {