summaryrefslogtreecommitdiff
path: root/parse/dump.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-08-23 23:36:28 -0400
committerOri Bernstein <ori@eigenstate.org>2012-08-23 23:36:28 -0400
commit58785aa9f3a6fc22a00e4cd0597fc3563dca6c76 (patch)
treec5bf6d428f3e641ad2ae09f83addf499ad170717 /parse/dump.c
parent67c2baf190fa4d1b82c308ceb807076b71b4b866 (diff)
downloadmc-58785aa9f3a6fc22a00e4cd0597fc3563dca6c76.tar.gz
Print a string as a string, not as a node.
Diffstat (limited to 'parse/dump.c')
-rw-r--r--parse/dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse/dump.c b/parse/dump.c
index 42aa412..dec9e71 100644
--- a/parse/dump.c
+++ b/parse/dump.c
@@ -92,8 +92,8 @@ static void outstab(Stab *st, FILE *fd, int depth)
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);
}