From: tb Date: Tue, 10 Oct 2023 09:27:03 +0000 (+0000) Subject: Fix a format warning about a non-literal string X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1e9f90d00e7d21aba5ee951b705671cffef48c9e;p=openbsd Fix a format warning about a non-literal string ok claudio sthen --- diff --git a/usr.bin/systat/netstat.c b/usr.bin/systat/netstat.c index 1e13de5feec..5f80827e70d 100644 --- a/usr.bin/systat/netstat.c +++ b/usr.bin/systat/netstat.c @@ -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;