30 lines
824 B
C++
30 lines
824 B
C++
$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);
|
|
|
|
}
|