openbsd-ports/devel/cmake/patches/patch-Source_cmGlobalGenerator_cxx

13 lines
680 B
Plaintext
Raw Normal View History

$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);