Fix a format warning about a non-literal string
authortb <tb@openbsd.org>
Tue, 10 Oct 2023 09:27:03 +0000 (09:27 +0000)
committertb <tb@openbsd.org>
Tue, 10 Oct 2023 09:27:03 +0000 (09:27 +0000)
ok claudio sthen

usr.bin/systat/netstat.c

index 1e13de5..5f80827 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: netstat.c,v 1.45 2015/03/12 01:03:00 claudio Exp $    */
+/*     $OpenBSD: netstat.c,v 1.46 2023/10/10 09:27:03 tb Exp $ */
 /*     $NetBSD: netstat.c,v 1.3 1995/06/18 23:53:07 cgd Exp $  */
 
 /*-
@@ -388,7 +388,7 @@ shownetstat(struct netinfo *p)
        switch (p->nif_proto) {
        case IPPROTO_TCP:
        case IPPROTO_UDP:
-               tbprintf(proto);
+               tbprintf("%s", proto);
                if (p->nif_family == AF_INET6)
                        tbprintf("6");
                break;