File: format-security.patch

package info (click to toggle)
atom4 4.1-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 908 kB
  • sloc: cpp: 4,451; makefile: 25; perl: 6
file content (15 lines) | stat: -rw-r--r-- 690 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Author: Andreas Tille <tille@debian.org>
Last-Update: 2025-12-22
Description: This patch is needed if compiled with -Wformat-security

--- a/x/xscoreboard.cc
+++ b/x/xscoreboard.cc
@@ -145,7 +145,7 @@ void xscoreboard::render_score(int playe
     XDrawString(disp, buffer, textgc, PL_X, starty+PL_MSG_Y+scorefont->ascent,
                 buf, strlen(buf));
   } else if (game->winner()==STALEMATE) {
-    snprintf(buf, TEXTBUF_MAX, "=== DRAW: no more moves left ===", player);
+    snprintf(buf, TEXTBUF_MAX, "=== DRAW: no more moves left for player %d ===", player);
     XDrawString(disp, buffer, textgc, PL_X, starty+PL_MSG_Y+scorefont->ascent,
                 buf, strlen(buf));
   }