diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2023-10-10 08:22:20 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2023-10-10 08:22:20 +0000 |
commit | ba6926f9a9028a45545dd0f8c707a332edb828c6 (patch) | |
tree | 040b2e876d2988771133e81a4c3c170250cf65e0 | |
parent | 05992f2590cde5af16196fb54f4d8f72e1f69991 (diff) |
Print non-literal string with "%s"
Caught by printf format attribute for printw(3) in newer curses.
-rw-r--r-- | games/boggle/boggle/mach.c | 6 |
1 files 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); } } |