shithub: mc

Download patch

ref: 58785aa9f3a6fc22a00e4cd0597fc3563dca6c76
parent: 67c2baf190fa4d1b82c308ceb807076b71b4b866
author: Ori Bernstein <[email protected]>
date: Thu Aug 23 19:36:28 EDT 2012

Print a string as a string, not as a node.

--- a/parse/dump.c
+++ b/parse/dump.c
@@ -92,8 +92,8 @@
     k = htkeys(st->ns, &n);
     for (i = 0; i < n; i++) {
         indent(fd, depth + 1);
-        fprintf(fd, "N  %s\n", namestr(k[i]));
-        outstab(getns(st, k[i]), fd, depth + 1);
+        fprintf(fd, "N  %s\n", (char*)k[i]);
+        outstab(getns_str(st, k[i]), fd, depth + 1);
     }
     free(k);
 }