X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fgraph.c;h=c63fdf9c013d68997fb1d63b2432b2033ceaf344;hp=3529d011ef333aa90cabf06750b4ea52174c58c2;hb=d22f4cb856db361cc413a2f9bcd326404afa470e;hpb=228a03aaa707a5fcced9dd5148a4bdb7e5ef025b diff --git a/src/graph.c b/src/graph.c index 3529d011..c63fdf9c 100644 --- a/src/graph.c +++ b/src/graph.c @@ -360,13 +360,13 @@ void dump_graph(void) { /* dump all nodes first */ for(node = node_tree->head; node; node = node->next) { n = node->data; - fprintf(file, " %s [label = \"%s\"];\n", n->name, n->name); + fprintf(file, " \"%s\" [label = \"%s\"];\n", n->name, n->name); } /* now dump all edges */ for(node = edge_weight_tree->head; node; node = node->next) { e = node->data; - fprintf(file, " %s -> %s;\n", e->from->name, e->to->name); + fprintf(file, " \"%s\" -> \"%s\";\n", e->from->name, e->to->name); } fprintf(file, "}\n");