summaryrefslogtreecommitdiff
path: root/parse/dump.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-05-08 01:47:40 -0700
committerOri Bernstein <ori@eigenstate.org>2015-05-08 01:47:40 -0700
commit1cb86ecfd69335631474bea4bb8a102e4559408a (patch)
treed0cb158e5f381385863c1e3bd6c0284b4f06159f /parse/dump.c
parent3b2a10f280a9c927bd678199a90a96f8cddab89c (diff)
downloadmc-1cb86ecfd69335631474bea4bb8a102e4559408a.tar.gz
A few more fixes for dataflow checks.
Diffstat (limited to 'parse/dump.c')
-rw-r--r--parse/dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse/dump.c b/parse/dump.c
index 88d5e57..43b5d31 100644
--- a/parse/dump.c
+++ b/parse/dump.c
@@ -204,7 +204,7 @@ static void outnode(Node *n, FILE *fd, int depth)
case Lbool: fprintf(fd, " Lbool %s\n", n->lit.boolval ? "true" : "false"); break;
case Lint: fprintf(fd, " Lint %llu\n", n->lit.intval); break;
case Lflt: fprintf(fd, " Lflt %lf\n", n->lit.fltval); break;
- case Lstr: fprintf(fd, " Lstr %s\n", n->lit.strval.buf); break;
+ case Lstr: fprintf(fd, " Lstr %.*s\n", (int)n->lit.strval.len, n->lit.strval.buf); break;
case Llbl: fprintf(fd, " Llbl %s\n", n->lit.lblval); break;
case Lfunc:
fprintf(fd, " Lfunc\n");