openbsd-ports/devel/cmake/patches/patch-Source_cmGlobalGenerator_cxx
espie 58e493f790 update to cmake 2.4.5, quite a few patches vanish since cmake can now
build stuff with system libraries, so we no longer have to repair
curl/zlib... just xmlrpc which cmake can't find without help.
2006-12-18 16:04:31 +00:00

13 lines
680 B
Plaintext

$OpenBSD: patch-Source_cmGlobalGenerator_cxx,v 1.3 2006/12/18 16:04:31 espie Exp $
--- Source/cmGlobalGenerator.cxx.orig Mon Dec 4 17:03:56 2006
+++ Source/cmGlobalGenerator.cxx Sun Dec 17 11:07:03 2006
@@ -644,7 +644,7 @@ void cmGlobalGenerator::Configure()
// update the cache entry for the number of local generators, this is used
// for progress
char num[100];
- sprintf(num,"%d",static_cast<int>(this->LocalGenerators.size()));
+ snprintf(num, sizeof num, "%d",static_cast<int>(this->LocalGenerators.size()));
this->GetCMakeInstance()->AddCacheEntry
("CMAKE_NUMBER_OF_LOCAL_GENERATORS", num,
"number of local generators", cmCacheManager::INTERNAL);