ccmake: Factor clear line.

This commit is contained in:
Nicolas Despres 2012-02-05 15:09:37 +01:00
parent 34cc537132
commit 1dd43c4c9d
1 changed files with 5 additions and 6 deletions

View File

@ -409,12 +409,11 @@ void cmCursesMainForm::PrintKeys(int process /* = 0 */)
char thirdLine[512]=""; char thirdLine[512]="";
if (process) if (process)
{ {
sprintf(firstLine, const char* clearLine =
" "); " ";
sprintf(secondLine, strcpy(firstLine, clearLine);
" "); strcpy(secondLine, clearLine);
sprintf(thirdLine, strcpy(thirdLine, clearLine);
" ");
} }
else else
{ {