shithub: mc

Download patch

ref: c4f9746027d2330cb45d274b5602673a85ad557c
parent: baaf35cf72504676b7d233655e50ee9ec3bbfe33
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Feb 19 13:45:22 EST 2015

Fix formatting type parameters.

    This solves a segfault.

--- a/parse/type.c
+++ b/parse/type.c
@@ -812,8 +812,7 @@
             }
             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: