mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 11:18:25 +00:00
Try to null-terminate string
This commit is contained in:
parent
eb5bf9451d
commit
a371815efd
@ -155,6 +155,8 @@ retry:
|
||||
{
|
||||
struct inotify_event *event = (struct inotify_event*)&event_buf[0];
|
||||
|
||||
event_buf[rc] = '\0';
|
||||
|
||||
/* Can read multiple events in one read() call. */
|
||||
|
||||
for (j = 0; j < rc; j += event->len + sizeof(struct inotify_event))
|
||||
|
Loading…
Reference in New Issue
Block a user