X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/c25e555e6ffca87394f2dee5e4090406a6e45259..39ecf70bb:/uip/fmtdump.c?ds=inline diff --git a/uip/fmtdump.c b/uip/fmtdump.c index 6a6ef7cb..55d7dcc7 100644 --- a/uip/fmtdump.c +++ b/uip/fmtdump.c @@ -439,7 +439,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); } } @@ -457,7 +457,7 @@ c_typestr(int t) buf[0] = '\0'; if (t & ~(CT_ADDR|CT_DATE)) - printf(buf, "0x%x ", t); + snprintf(buf, sizeof buf, "0x%x ", t); strcat(buf, "<"); i = 0; FNORD(CT_ADDR, "ADDR"); @@ -474,7 +474,7 @@ c_flagsstr(int t) buf[0] = '\0'; if (t & ~(CF_TRUE|CF_PARSED|CF_DATEFAB|CF_TRIMMED)) - printf(buf, "0x%x ", t); + snprintf(buf, sizeof buf, "0x%x ", t); strcat(buf, "<"); i = 0; FNORD(CF_TRUE, "TRUE");