aboutsummaryrefslogtreecommitdiffstats
path: root/fbtools.c
diff options
context:
space:
mode:
Diffstat (limited to 'fbtools.c')
-rw-r--r--fbtools.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fbtools.c b/fbtools.c
index fd77d31..7b1def2 100644
--- a/fbtools.c
+++ b/fbtools.c
@@ -324,7 +324,8 @@ gfxstate* fb_init(const char *device, char *mode)
gfx->cleanup_display = fb_cleanup_display;
fstat(fb, &st);
- gfx->devnum = st.st_rdev;
+ gfx->devnum = st.st_rdev;
+ snprintf(gfx->devpath, sizeof(gfx->devpath), "%s", device);
return gfx;