summaryrefslogtreecommitdiff
path: root/src/03/graph.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/03/graph.c')
-rw-r--r--src/03/graph.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/03/graph.c b/src/03/graph.c
index fbd8677..0467e8b 100644
--- a/src/03/graph.c
+++ b/src/03/graph.c
@@ -1,5 +1,6 @@
#include "graph.h"
#include <stdlib.h>
+#include <stdio.h>
Vertex *vertex_initialize(char label) {
Vertex *item = malloc(sizeof(Vertex));
@@ -9,7 +10,7 @@ Vertex *vertex_initialize(char label) {
Graph *graph_initialize(void) {
Graph *item = malloc(sizeof(Graph));
- for (int i = 0; i < 256; ++i)
+ for (int i = 0; i < 128; ++i)
item->vertices[i] = NULL;
return item;
}