From fa926beb7e8407608c56b4c30097cc631181140d Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Thu, 23 Dec 2021 13:26:14 -0500 Subject: Fix buffer size thinko. --- unsaver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unsaver.c') 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) { -- cgit v1.2.3