From aa41ab081c55d8a1e87222abe01b2e13009a5339 Mon Sep 17 00:00:00 2001 From: tb Date: Tue, 10 Oct 2023 09:48:06 +0000 Subject: [PATCH] Fix format string warning in robots/score.c --- games/robots/score.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.20.1