From 22f3b73b8b608e08808bf02821edb131b00281c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Vasi=C4=BE?= Date: Tue, 26 Apr 2022 21:17:47 +0200 Subject: [PATCH] domaca_uloha_7 --- du7/snake.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/du7/snake.c b/du7/snake.c index d8abbd9..af977ad 100644 --- a/du7/snake.c +++ b/du7/snake.c @@ -25,7 +25,7 @@ struct snake* remove_snake(struct snake* snake){ else { struct snake* medzipamat = calloc(1, sizeof(struct snake)); - medzipamat = snake + medzipamat = snake; while (1) { snake = snake->next;