Fix gcc warning, too small destination buffer may be truncated

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2021-02-10 11:56:34 +01:00
parent 1fb78742c7
commit f6b6ed211c
+1 -1
View File
@@ -56,7 +56,7 @@ static void setup(void)
static void watcher(void *arg, int fd, int events)
{
int len = 0;
char buf[EVENT_SIZE], name[42];
char buf[EVENT_SIZE], name[256];
struct tty *entry;
struct inotify_event *notified = (struct inotify_event *)buf;