From: tb Date: Tue, 10 Oct 2023 08:22:19 +0000 (+0000) Subject: Print non-literal string with "%s" X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f91c735ec891072f51ca2c8073133f4707fef785;p=openbsd Print non-literal string with "%s" Caught by printf format attribute for printw(3) in newer curses. --- 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); } }