summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tool/app_launcher.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tool/app_launcher.c b/tool/app_launcher.c
index 2e4b16fd..e842b71b 100644
--- a/tool/app_launcher.c
+++ b/tool/app_launcher.c
@@ -344,6 +344,8 @@ static gboolean __amd_monitor_cb(GIOChannel *io, GIOCondition cond,
}
}
i += offsetof(struct inotify_event, name) + event->len;
+ if (i >= INOTIFY_BUF)
+ break;
}
return TRUE;