summaryrefslogtreecommitdiff
path: root/parse
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-02-19 18:45:22 -0500
committerOri Bernstein <ori@eigenstate.org>2015-02-19 18:45:22 -0500
commitc969f47dd9951b6e7781e45321bd6f538675e700 (patch)
tree73a2162255b9e2e632d2ab8df6f331187dc159ee /parse
parent7e376310b1e4c75ed9579635e82fece1c7417b65 (diff)
downloadmc-c969f47dd9951b6e7781e45321bd6f538675e700.tar.gz
Fix formatting type parameters.
This solves a segfault.
Diffstat (limited to 'parse')
-rw-r--r--parse/type.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/parse/type.c b/parse/type.c
index 9fccb07..9550e97 100644
--- a/parse/type.c
+++ b/parse/type.c
@@ -812,8 +812,7 @@ size_t tyidfmt(char *buf, size_t sz, Type *ty)
}
break;
case Typaram:
- p += snprintf(p, end - p, "$r");
- p += tyidfmt(p, end - p, ty->sub[0]);
+ p += snprintf(p, end - p, "$r%s", ty->pname);
break;
case Tyunres:
case Tyname: