diff options
Diffstat (limited to 'miscutils')
| -rw-r--r-- | miscutils/nmeter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/nmeter.c b/miscutils/nmeter.c index b09877137..0c9485350 100644 --- a/miscutils/nmeter.c +++ b/miscutils/nmeter.c | |||
| @@ -104,7 +104,7 @@ static const char* get_file(proc_file *pf) | |||
| 104 | // but allows us to allocate only once (at first sample) | 104 | // but allows us to allocate only once (at first sample) |
| 105 | // per proc file, and reuse buffer for each sample | 105 | // per proc file, and reuse buffer for each sample |
| 106 | if (!pf->file) | 106 | if (!pf->file) |
| 107 | pf->file = (char*)xmalloc(proc_file_size); | 107 | pf->file = xmalloc(proc_file_size); |
| 108 | readfile_z(pf->file, proc_file_size, pf->name); | 108 | readfile_z(pf->file, proc_file_size, pf->name); |
| 109 | } | 109 | } |
| 110 | return pf->file; | 110 | return pf->file; |
