[cmake-commits] king committed cmFindPackageCommand.cxx 1.31 1.32

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Jan 21 13:04:10 EST 2008


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv22198

Modified Files:
	cmFindPackageCommand.cxx 
Log Message:
COMP: snprintf is not portable.


Index: cmFindPackageCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmFindPackageCommand.cxx,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- cmFindPackageCommand.cxx	21 Jan 2008 13:48:33 -0000	1.31
+++ cmFindPackageCommand.cxx	21 Jan 2008 18:04:08 -0000	1.32
@@ -466,17 +466,17 @@
         {
         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;



More information about the Cmake-commits mailing list