diff --git a/alpha_beta.c b/alpha_beta.c --- a/alpha_beta.c +++ b/alpha_beta.c @@ -48,7 +48,7 @@ { Node *actual; - if ((actual = malloc (sizeof (Node) + 1)) == NULL) { + if ((actual = malloc (sizeof (Node))) == NULL) { perror ("MALLOC"); exit (EXIT_FAILURE); } @@ -176,7 +176,7 @@ continue; } - if ((move = malloc (sizeof (Move) + 1)) == NULL) { + if ((move = malloc (sizeof (Move))) == NULL) { perror ("MALLOC"); exit (EXIT_FAILURE); } @@ -303,7 +303,7 @@ else depth = 1; - if ((actual = malloc (sizeof (Node) + 1)) == NULL) { + if ((actual = malloc (sizeof (Node))) == NULL) { perror ("MALLOC"); return EXIT_FAILURE; }