handle_mem.c
This commit is contained in:
parent
a50c0a146f
commit
73b1e189c4
|
@ -6,7 +6,7 @@
|
|||
/* By: smatthes <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/03/25 19:45:42 by smatthes #+# #+# */
|
||||
/* Updated: 2023/03/26 20:36:47 by akarami ### ########.fr */
|
||||
/* Updated: 2023/03/26 21:23:02 by akarami ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
@ -22,7 +22,7 @@ int **alloc_mem(int n)
|
|||
board = malloc(n * 8);
|
||||
i = -1;
|
||||
while (++i < n)
|
||||
board[i] = malloc(4);
|
||||
board[i] = malloc(n * 4);
|
||||
return (board);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue