summaryrefslogtreecommitdiff
path: root/devel/cmake/patches/patch-Source_CursesDialog_cmCursesLongMessageForm.cxx
blob: e2a76e64d177501b7c38ad92f9f633eb114f453d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$NetBSD: patch-Source_CursesDialog_cmCursesLongMessageForm.cxx,v 1.2 2015/09/12 16:46:11 wiz Exp $

printw takes a format string.
http://public.kitware.com/Bug/view.php?id=15738

--- Source/CursesDialog/cmCursesLongMessageForm.cxx.orig	2015-09-07 09:50:13.000000000 +0000
+++ Source/CursesDialog/cmCursesLongMessageForm.cxx
@@ -82,10 +82,10 @@ void cmCursesLongMessageForm::UpdateStat
 
   curses_move(y-4,0);
   attron(A_STANDOUT);
-  printw(bar);
+  printw("%s", bar);
   attroff(A_STANDOUT);
   curses_move(y-3,0);
-  printw(version);
+  printw("%s", version);
   pos_form_cursor(this->Form);
 }
 
@@ -102,7 +102,7 @@ void cmCursesLongMessageForm::PrintKeys(
   sprintf(firstLine,  "Press [e] to exit help");
 
   curses_move(y-2,0);
-  printw(firstLine);
+  printw("%s", firstLine);
   pos_form_cursor(this->Form);
 
 }