aboutsummaryrefslogtreecommitdiff
path: root/unsaver.c
diff options
context:
space:
mode:
Diffstat (limited to 'unsaver.c')
-rw-r--r--unsaver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unsaver.c b/unsaver.c
index 2cba2dc..a80e974 100644
--- a/unsaver.c
+++ b/unsaver.c
@@ -268,7 +268,7 @@ void open_joysticks(void) {
void check_inotify() {
int res;
- res = read(inotify_fd, inotify_buf, sizeof(inotify_buf) + NAME_MAX + 1);
+ res = read(inotify_fd, inotify_buf, sizeof(struct inotify_event) + NAME_MAX + 1);
if(res > 0) {
if(debug) {