From ba6926f9a9028a45545dd0f8c707a332edb828c6 Mon Sep 17 00:00:00 2001 From: Theo Buehler Date: Tue, 10 Oct 2023 08:22:20 +0000 Subject: Print non-literal string with "%s" Caught by printf format attribute for printw(3) in newer curses. --- games/boggle/boggle/mach.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/games/boggle/boggle/mach.c b/games/boggle/boggle/mach.c index ccd3bf1d43d..5445f100d0d 100644 --- a/games/boggle/boggle/mach.c +++ b/games/boggle/boggle/mach.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mach.c,v 1.22 2016/09/11 14:21:17 tb Exp $ */ +/* $OpenBSD: mach.c,v 1.23 2023/10/10 08:22:19 tb Exp $ */ /* $NetBSD: mach.c,v 1.5 1995/04/28 22:28:48 mycroft Exp $ */ /*- @@ -686,7 +686,7 @@ tty_showboard(char *b) clear(); move(BOARD_LINE, BOARD_COL); line = BOARD_LINE; - printw(separator); + printw("%s", separator); move(++line, BOARD_COL); for (i = 0; i < ncubes; i++) { printw("| "); @@ -702,7 +702,7 @@ tty_showboard(char *b) if ((i + 1) % grid == 0) { printw("|"); move(++line, BOARD_COL); - printw(separator); + printw("%s", separator); move(++line, BOARD_COL); } } -- cgit v1.2.3