ENH: fix warning

This commit is contained in:
Bill Hoffman 2006-11-29 17:25:46 -05:00
parent 33170bc371
commit e2a7c9358f
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ void cmCursesLongMessageForm::UpdateStatusBar()
char version[cmCursesMainForm::MAX_WIDTH];
char vertmp[128];
sprintf(vertmp,"CMake Version %d.%d - %s", cmVersion::GetMajorVersion(),
cmVersion::GetMinorVersion(),cmVersion::GetReleaseVersion());
cmVersion::GetMinorVersion(),cmVersion::GetReleaseVersion().c_str());
int sideSpace = (width-strlen(vertmp));
for(int i=0; i<sideSpace; i++) { version[i] = ' '; }
sprintf(version+sideSpace, "%s", vertmp);