mirror of
https://github.com/troglobit/finit.git
synced 2026-11-17 19:30:29 +00:00
Fix gcc warning, too small destination buffer may be truncated
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
1fb78742c7
commit
f6b6ed211c
1 file changed
+1
-1
+1
-1
@@ -56,7 +56,7 @@ static void setup(void)
|
|||||||
static void watcher(void *arg, int fd, int events)
|
static void watcher(void *arg, int fd, int events)
|
||||||
{
|
{
|
||||||
int len = 0;
|
int len = 0;
|
||||||
char buf[EVENT_SIZE], name[42];
|
char buf[EVENT_SIZE], name[256];
|
||||||
struct tty *entry;
|
struct tty *entry;
|
||||||
struct inotify_event *notified = (struct inotify_event *)buf;
|
struct inotify_event *notified = (struct inotify_event *)buf;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user