summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-02-07 20:35:58 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2012-02-07 20:35:58 (GMT)
commit3f359596a0984334e861fd0f64452ee9da6a26e6 (patch)
tree9cf8a186551cd32ad1e68652bd800a87067cbb3a /Source
parent2619d765567bd4bee8e5976a2c5967d36487cdd6 (diff)
parent415ffda7a8ca0dfea2e00353a65fb31d8fadfb75 (diff)
downloadCMake-3f359596a0984334e861fd0f64452ee9da6a26e6.zip
CMake-3f359596a0984334e861fd0f64452ee9da6a26e6.tar.gz
CMake-3f359596a0984334e861fd0f64452ee9da6a26e6.tar.bz2
Merge topic 'fix-ccmake-clear'
415ffda ccmake: Extend clear line. 1dd43c4 ccmake: Factor clear line.
Diffstat (limited to 'Source')
-rw-r--r--Source/CursesDialog/cmCursesMainForm.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx
index 6c7627f..4fee0bb 100644
--- a/Source/CursesDialog/cmCursesMainForm.cxx
+++ b/Source/CursesDialog/cmCursesMainForm.cxx
@@ -409,12 +409,11 @@ void cmCursesMainForm::PrintKeys(int process /* = 0 */)
char thirdLine[512]="";
if (process)
{
- sprintf(firstLine,
- " ");
- sprintf(secondLine,
- " ");
- sprintf(thirdLine,
- " ");
+ const char* clearLine =
+ " ";
+ strcpy(firstLine, clearLine);
+ strcpy(secondLine, clearLine);
+ strcpy(thirdLine, clearLine);
}
else
{