From 7dbf43f175ac06c4739ace2174e286a5d3618c0c Mon Sep 17 00:00:00 2001 From: vj586da Date: Sat, 22 Jan 2022 02:04:03 +0100 Subject: [PATCH] <= 15 --- sk1a/maze.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sk1a/maze.c b/sk1a/maze.c index bd24e04..129e0e4 100644 --- a/sk1a/maze.c +++ b/sk1a/maze.c @@ -12,7 +12,7 @@ int paths(char* maze, int journey, int size){ return 1; } - if(journey >= 0 && journey < (size*size) && maze[journey]==' '){ + if(journey >= 0 && journey <= (size*size) && maze[journey]==' '){ maze[journey] = '*';