From: Ken Hornstein Date: Fri, 22 Feb 2013 05:47:47 +0000 (-0500) Subject: Fix the code to print out an unknown instruction. Wow, this never worked X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/73c20cd5c6255b0c0fca22a13562d51a5f03ddcf?ds=inline;hp=--cc Fix the code to print out an unknown instruction. Wow, this never worked back from the original fmtdump. --- 73c20cd5c6255b0c0fca22a13562d51a5f03ddcf diff --git a/uip/fmttest.c b/uip/fmttest.c index ab3e3d1e..f601ad78 100644 --- a/uip/fmttest.c +++ b/uip/fmttest.c @@ -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); } }