From: tb Date: Tue, 10 Oct 2023 09:48:06 +0000 (+0000) Subject: Fix format string warning in robots/score.c X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=aa41ab081c55d8a1e87222abe01b2e13009a5339;p=openbsd Fix format string warning in robots/score.c --- diff --git a/games/robots/score.c b/games/robots/score.c index c5d81177509..fe53abb7aaa 100644 --- a/games/robots/score.c +++ b/games/robots/score.c @@ -1,4 +1,4 @@ -/* $OpenBSD: score.c,v 1.16 2019/06/28 13:32:52 deraadt Exp $ */ +/* $OpenBSD: score.c,v 1.17 2023/10/10 09:48:06 tb Exp $ */ /* $NetBSD: score.c,v 1.3 1995/04/22 10:09:12 cgd Exp $ */ /* @@ -112,7 +112,7 @@ score(int score_wfd) move((scp - Top) + 1, 6); if (!done_show && scp->s_uid == uid && scp->s_score == Score) standout(); - printw(" %d\t%d\t%-*s ", (scp - Top) + 1, scp->s_score, + printw(" %td\t%d\t%-*s ", (scp - Top) + 1, scp->s_score, (int)(sizeof scp->s_name), scp->s_name); if (!done_show && scp->s_uid == uid && scp->s_score == Score) { standend();