From 3fe40e249fbad468347b2a0d643b19f1f5f3f524 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 29 Jan 2020 23:21:16 +0100 Subject: I've seen enough --- src/ft_get_res.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ft_get_res.c') diff --git a/src/ft_get_res.c b/src/ft_get_res.c index 6fecb74..372ebca 100644 --- a/src/ft_get_res.c +++ b/src/ft_get_res.c @@ -23,5 +23,8 @@ ft_get_res(char **words, t_cub *clist) ft_checkdigit(words[2], clist); clist->wlist->x_size = ft_atoi(words[1]); clist->wlist->y_size = ft_atoi(words[2]); + if (clist->wlist->x_size < 10 + || clist->wlist->y_size < 10) + return (-1); return (0); } -- cgit v1.2.3