summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog
diff options
context:
space:
mode:
authorNicolas Despres <nicolas.despres@gmail.com>2012-02-05 14:09:37 (GMT)
committerNicolas Despres <nicolas.despres@gmail.com>2012-02-05 14:09:37 (GMT)
commit1dd43c4c9d6d921b38288802d0560f92c90a0c08 (patch)
tree4da7c42f208195265d983b4b7a41b01dbb64d6a7 /Source/CursesDialog
parent34cc537132e843d07c3bdeb0ccaa06e82f9aef88 (diff)
downloadCMake-1dd43c4c9d6d921b38288802d0560f92c90a0c08.zip
CMake-1dd43c4c9d6d921b38288802d0560f92c90a0c08.tar.gz
CMake-1dd43c4c9d6d921b38288802d0560f92c90a0c08.tar.bz2
ccmake: Factor clear line.
Diffstat (limited to 'Source/CursesDialog')
-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..6b7d89e 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
{