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 1c157120d..1f5ba2ecc 100644 --- a/util-linux/readprofile.c +++ b/util-linux/readprofile.c | |||
@@ -144,7 +144,7 @@ int readprofile_main(int argc UNUSED_PARAM, char **argv) | |||
144 | 144 | ||
145 | total = 0; | 145 | total = 0; |
146 | 146 | ||
147 | map = xfopen(mapFile, "r"); | 147 | map = xfopen_for_read(mapFile); |
148 | 148 | ||
149 | while (fgets(mapline, S_LEN, map)) { | 149 | while (fgets(mapline, S_LEN, map)) { |
150 | if (sscanf(mapline, "%llx %s %s", &fn_add, mode, fn_name) != 3) | 150 | if (sscanf(mapline, "%llx %s %s", &fn_add, mode, fn_name) != 3) |