]> granicus.if.org Git - graphviz/commitdiff
exopname: replace sfsprintf call with snprintf
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 22 Jul 2021 03:06:45 +0000 (20:06 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 28 Jul 2021 03:54:42 +0000 (20:54 -0700)
Related to #1998.

lib/expr/excc.c

index 5df55626addf4a2e7b5c855e2dae10568ec6e904..2be68306ca2c819a91d6de6eb4f752067437e5ab 100644 (file)
@@ -22,6 +22,7 @@
        Exccdisc_t*     ccdisc;         /* excc() discipline            */
 
 #include <expr/exlib.h>
+#include <stdio.h>
 #include <string.h>
 
 #define EX_CC_DUMP     0x8000
@@ -92,7 +93,7 @@ exopname(int op)
        case RSH:
                return ">>";
        }
-       sfsprintf(buf, sizeof(buf) - 1, "(OP=%03o)", op);
+       snprintf(buf, sizeof(buf) - 1, "(OP=%03o)", op);
        return buf;
 }