diff options
Diffstat (limited to 'src/ft_get_res.c')
-rw-r--r-- | src/ft_get_res.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |