]> diplodocus.org Git - nmh/commitdiff
Fix the code to print out an unknown instruction. Wow, this never worked
authorKen Hornstein <kenh@pobox.com>
Fri, 22 Feb 2013 05:47:47 +0000 (00:47 -0500)
committerKen Hornstein <kenh@pobox.com>
Fri, 22 Feb 2013 05:47:47 +0000 (00:47 -0500)
back from the original fmtdump.

uip/fmttest.c

index ab3e3d1e5f90fa9cb5c07b064fac09d62fe87faa..f601ad78f891c61a0261dc05c6b042f40f6e5257 100644 (file)
@@ -1073,7 +1073,7 @@ f_typestr(int t)
        case FT_V_MATCH: return("V_MATCH");
        case FT_V_AMATCH: return("V_AMATCH");
        default:
-               printf(buf, "/* ??? #%d */", t);
+               snprintf(buf, sizeof(buf), "/* ??? #%d */", t);
                return(buf);
        }
 }