summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-01-21 18:04:08 (GMT)
committerBrad King <brad.king@kitware.com>2008-01-21 18:04:08 (GMT)
commit9a16d01591e34d8e8fa7d843897ebb3176b63b9c (patch)
tree3f4c10959346cbcfa974b8473d9b6ddc96d0a269 /Source
parentf41b1e8e9148c62e186e0729c5a5144c51e944e9 (diff)
downloadCMake-9a16d01591e34d8e8fa7d843897ebb3176b63b9c.zip
CMake-9a16d01591e34d8e8fa7d843897ebb3176b63b9c.tar.gz
CMake-9a16d01591e34d8e8fa7d843897ebb3176b63b9c.tar.bz2
COMP: snprintf is not portable.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmFindPackageCommand.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx
index c4d7b87..694f212 100644
--- a/Source/cmFindPackageCommand.cxx
+++ b/Source/cmFindPackageCommand.cxx
@@ -466,17 +466,17 @@ bool cmFindPackageCommand::FindModule(bool& found)
{
case 3:
{
- snprintf(buf, 64, "%u", this->VersionPatch);
+ sprintf(buf, "%u", this->VersionPatch);
this->Makefile->AddDefinition((ver+"_PATCH").c_str(), buf);
} // no break
case 2:
{
- snprintf(buf, 64, "%u", this->VersionMinor);
+ sprintf(buf, "%u", this->VersionMinor);
this->Makefile->AddDefinition((ver+"_MINOR").c_str(), buf);
} // no break
case 1:
{
- snprintf(buf, 64, "%u", this->VersionMajor);
+ sprintf(buf, "%u", this->VersionMajor);
this->Makefile->AddDefinition((ver+"_MAJOR").c_str(), buf);
} // no break
default: break;