aboutsummaryrefslogtreecommitdiff
path: root/unsaver.c
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-12-23 13:26:14 -0500
committerB. Watson <yalhcru@gmail.com>2021-12-23 13:26:14 -0500
commitfa926beb7e8407608c56b4c30097cc631181140d (patch)
tree3704ed3cc6cc430e7c7e4a72eb1ee6803c4b1ffa /unsaver.c
parenta5b848702eb801ac8d8fb605a7b51cfb0babe88d (diff)
downloadunsaver-master.tar.gz
Fix buffer size thinko.HEADmaster
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) {