diff options
Diffstat (limited to 'fbset.c')
-rw-r--r-- | fbset.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -198,8 +198,7 @@ static int readmode(struct fb_var_screeninfo *base, const char *fn, | |||
198 | char buf[256]; | 198 | char buf[256]; |
199 | char *p = buf; | 199 | char *p = buf; |
200 | 200 | ||
201 | if ((f = fopen(fn, "r")) == NULL) | 201 | f = xfopen(fn, "r"); |
202 | perror_msg_and_die("readmode(fopen)"); | ||
203 | while (!feof(f)) { | 202 | while (!feof(f)) { |
204 | fgets(buf, sizeof(buf), f); | 203 | fgets(buf, sizeof(buf), f); |
205 | if ((p = strstr(buf, "mode ")) || (p = strstr(buf, "mode\t"))) { | 204 | if ((p = strstr(buf, "mode ")) || (p = strstr(buf, "mode\t"))) { |