mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-30 19:50:24 +00:00
Try to prevent out-of-bounds write
This commit is contained in:
parent
a371815efd
commit
5c84f9158e
@ -155,7 +155,7 @@ retry:
|
||||
{
|
||||
struct inotify_event *event = (struct inotify_event*)&event_buf[0];
|
||||
|
||||
event_buf[rc] = '\0';
|
||||
event_buf[rc-1] = '\0';
|
||||
|
||||
/* Can read multiple events in one read() call. */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user