From a97b1cb8d0b91d2d4c8585b5089b2d8180e31a4c Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Thu, 23 Jan 2020 18:13:58 +0100 Subject: Pretty fine --- src/ft_key_events.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ft_key_events.c') diff --git a/src/ft_key_events.c b/src/ft_key_events.c index 188a770..82235fc 100644 --- a/src/ft_key_events.c +++ b/src/ft_key_events.c @@ -41,12 +41,12 @@ ft_key_event(int keycode, void *param) fun_ptr[3] = ft_w_key; ft_printf("Key [%d] pressed\n", keycode); (keycode == 13) ? (keycode = 3) : 0; - (keycode <= 3) ? (*fun_ptr[keycode])() : 0; + (keycode <= 3) ? ((*fun_ptr[keycode])()) : 0; if (keycode == 53) { ft_memdel(((t_winlist*)param)->wlx); ft_memdel(((t_winlist*)param)->winptr); - ft_memdel(((t_winlist*)param)); + ft_memdel((t_winlist*)param); ft_printf("Exiting program\n"); exit(0); } -- cgit v1.2.3