From 1e9f90d00e7d21aba5ee951b705671cffef48c9e Mon Sep 17 00:00:00 2001 From: tb Date: Tue, 10 Oct 2023 09:27:03 +0000 Subject: [PATCH] Fix a format warning about a non-literal string ok claudio sthen --- usr.bin/systat/netstat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1