2006-12-18 11:04:31 -05:00
|
|
|
$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()
|
2006-07-20 05:23:13 -04:00
|
|
|
// 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);
|