summaryrefslogtreecommitdiffhomepage
path: root/util-linux/fbset.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/fbset.c')
-rw-r--r--util-linux/fbset.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/util-linux/fbset.c b/util-linux/fbset.c
index 72284a6c5..be1e3c3f1 100644
--- a/util-linux/fbset.c
+++ b/util-linux/fbset.c
@@ -198,8 +198,7 @@ static int readmode(struct fb_var_screeninfo *base, const char *fn,
char buf[256];
char *p = buf;
- if ((f = fopen(fn, "r")) == NULL)
- perror_msg_and_die("readmode(fopen)");
+ f = xfopen(fn, "r");
while (!feof(f)) {
fgets(buf, sizeof(buf), f);
if ((p = strstr(buf, "mode ")) || (p = strstr(buf, "mode\t"))) {