summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog/cmCursesMainForm.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2002-11-21 15:03:36 (GMT)
committerBrad King <brad.king@kitware.com>2002-11-21 15:03:36 (GMT)
commita7da3d4efffa930d50d6db8f549850d4d3ace4b3 (patch)
treeef05e1b8e14b4ac92d84d6fbd3c1196979d1f21a /Source/CursesDialog/cmCursesMainForm.cxx
parente9687d931aeccdbf4fa6c05e066e0582c598083c (diff)
downloadCMake-a7da3d4efffa930d50d6db8f549850d4d3ace4b3.zip
CMake-a7da3d4efffa930d50d6db8f549850d4d3ace4b3.tar.gz
CMake-a7da3d4efffa930d50d6db8f549850d4d3ace4b3.tar.bz2
ERR: Fixed string literal to char* warnings.
Diffstat (limited to 'Source/CursesDialog/cmCursesMainForm.cxx')
-rw-r--r--Source/CursesDialog/cmCursesMainForm.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx
index 440b774..87515dc 100644
--- a/Source/CursesDialog/cmCursesMainForm.cxx
+++ b/Source/CursesDialog/cmCursesMainForm.cxx
@@ -418,10 +418,10 @@ void cmCursesMainForm::PrintKeys(int process /* = 0 */)
}
curses_move(y-4,0);
- char *fmt = "Press [enter] to edit option";
+ char fmt[512] = "Press [enter] to edit option";
if ( process )
{
- fmt = " ";
+ strcpy(fmt, " ");
}
printw(fmt);
curses_move(y-3,0);
@@ -581,7 +581,8 @@ void cmCursesMainForm::UpdateStatusBar(const char* message)
// Now print both lines
curses_move(y-5,0);
attron(A_STANDOUT);
- printw("%s", bar);
+ char s[] = "%s";
+ printw(s, bar);
attroff(A_STANDOUT);
curses_move(y-4,0);
printw(version);