shithub: mc

Download patch

ref: 2c92e48f88c0e6000a85ff6756cf692eed6a3e74
parent: e467b6f2f715a98732bd401a483af2d45b5cf32d
parent: d7340522fdf6f9d3799546519de63db0483d6a17
author: Ori Bernstein <[email protected]>
date: Tue Aug 7 19:40:43 EDT 2012

Merge branch 'master' of git+ssh://mimir.eigenstate.org/git/ori/mc2

--- a/parse/specialize.c
+++ b/parse/specialize.c
@@ -271,7 +271,7 @@
     p += snprintf(p, end - p, "$%d", t->tid);
     for (i = 0; i < t->nsub; i++)
         p += tidappend(p, end - p, t->sub[i]);
-    return end - p;
+    return p - buf;
 }
 
 static Node *genericname(Node *n, Type *t)