]> granicus.if.org Git - graphviz/commitdiff
fix bug#896 - need html escaping of graph name when used in -Tcmapx
authorellson <devnull@localhost>
Thu, 2 Mar 2006 18:05:55 +0000 (18:05 +0000)
committerellson <devnull@localhost>
Thu, 2 Mar 2006 18:05:55 +0000 (18:05 +0000)
lib/common/mapgen.c

index 51365b87356a42128a7dd754cfbaaf8a1d641a5d..9532e38dfd1b8e0b90c6bd6df0f54464713b28cd 100644 (file)
@@ -336,13 +336,13 @@ static void
 map_begin_page(graph_t * g, point page, double scale, int rot,
               point offset)
 {
-    char *url;
+    char *url, *name;
 
     Rot = rot;
+    name = xml_string(g->name);
 
     if (Output_lang == CMAPX) {
-       fprintf(Output_file, "<map id=\"%s\" name=\"%s\">\n", g->name,
-               g->name);
+       fprintf(Output_file, "<map id=\"%s\" name=\"%s\">\n", name, name);
     }
     Root_Graph = g;
     Default_URL = NULL;