diff options
Diffstat (limited to 'libbb/procps.c')
-rw-r--r-- | libbb/procps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/procps.c b/libbb/procps.c index f799099fd..ba3d25050 100644 --- a/libbb/procps.c +++ b/libbb/procps.c | |||
@@ -308,7 +308,7 @@ procps_status_t* FAST_FUNC procps_scan(procps_status_t* sp, int flags) | |||
308 | FILE *file; | 308 | FILE *file; |
309 | 309 | ||
310 | strcpy(filename_tail, "/smaps"); | 310 | strcpy(filename_tail, "/smaps"); |
311 | file = fopen(filename, "r"); | 311 | file = fopen_for_read(filename); |
312 | if (!file) | 312 | if (!file) |
313 | break; | 313 | break; |
314 | while (fgets(buf, sizeof(buf), file)) { | 314 | while (fgets(buf, sizeof(buf), file)) { |