alpha_beta.c
changeset 48 b94d657a9acb
parent 29 7abf6146898e
child 77 49e0babccb23
--- 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;
     }