COMP: snprintf is not portable.

This commit is contained in:
Brad King 2008-01-21 13:04:08 -05:00
parent f41b1e8e91
commit 9a16d01591
1 changed files with 3 additions and 3 deletions

View File

@ -466,17 +466,17 @@ bool cmFindPackageCommand::FindModule(bool& found)
{ {
case 3: case 3:
{ {
snprintf(buf, 64, "%u", this->VersionPatch); sprintf(buf, "%u", this->VersionPatch);
this->Makefile->AddDefinition((ver+"_PATCH").c_str(), buf); this->Makefile->AddDefinition((ver+"_PATCH").c_str(), buf);
} // no break } // no break
case 2: case 2:
{ {
snprintf(buf, 64, "%u", this->VersionMinor); sprintf(buf, "%u", this->VersionMinor);
this->Makefile->AddDefinition((ver+"_MINOR").c_str(), buf); this->Makefile->AddDefinition((ver+"_MINOR").c_str(), buf);
} // no break } // no break
case 1: case 1:
{ {
snprintf(buf, 64, "%u", this->VersionMajor); sprintf(buf, "%u", this->VersionMajor);
this->Makefile->AddDefinition((ver+"_MAJOR").c_str(), buf); this->Makefile->AddDefinition((ver+"_MAJOR").c_str(), buf);
} // no break } // no break
default: break; default: break;