diff options
Diffstat (limited to 'util-linux/readprofile.c')
-rw-r--r-- | util-linux/readprofile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/readprofile.c b/util-linux/readprofile.c index f2bd3bbae..02afedcf0 100644 --- a/util-linux/readprofile.c +++ b/util-linux/readprofile.c | |||
@@ -99,7 +99,7 @@ int readprofile_main(int argc, char **argv) | |||
99 | /* | 99 | /* |
100 | * Use an fd for the profiling buffer, to skip stdio overhead | 100 | * Use an fd for the profiling buffer, to skip stdio overhead |
101 | */ | 101 | */ |
102 | len = INT_MAX; | 102 | len = MAXINT(ssize_t); |
103 | buf = xmalloc_open_read_close(proFile, &len); | 103 | buf = xmalloc_open_read_close(proFile, &len); |
104 | if (!optNative) { | 104 | if (!optNative) { |
105 | int entries = len/sizeof(*buf); | 105 | int entries = len/sizeof(*buf); |