mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Fix a compile warning on OS X 10.6 and up
This commit is contained in:
+3
-1
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user