openbsd-ports/devel/cmake/patches/patch-Source_cmake_cxx
espie 8063f8ee22 find qmake4, not qmake...
regen other patches with new diff.
2007-03-20 11:23:10 +00:00

31 lines
1.4 KiB
Plaintext

$OpenBSD: patch-Source_cmake_cxx,v 1.4 2007/03/20 11:23:10 espie Exp $
--- Source/cmake.cxx.orig Wed Jan 10 18:59:12 2007
+++ Source/cmake.cxx Sun Mar 18 13:52:03 2007
@@ -1487,7 +1487,7 @@ int cmake::Configure()
if(!this->CacheManager->GetCacheValue("CMAKE_BACKWARDS_COMPATIBILITY"))
{
char ver[256];
- sprintf(ver,"%i.%i",cmMakefile::GetMajorVersion(),
+ snprintf(ver, sizeof ver, "%i.%i",cmMakefile::GetMajorVersion(),
cmMakefile::GetMinorVersion());
this->CacheManager->AddCacheEntry
("CMAKE_BACKWARDS_COMPATIBILITY",ver,
@@ -1852,7 +1852,7 @@ int cmake::DumpDocumentationToFile(std::ostream& f)
const char *terse;
const char *full;
char tmp[1024];
- sprintf(tmp,"Version %d.%d (%s)", cmake::GetMajorVersion(),
+ snprintf(tmp, sizeof tmp, "Version %d.%d (%s)", cmake::GetMajorVersion(),
cmake::GetMinorVersion(), cmVersion::GetReleaseVersion().c_str());
f << "<html>\n";
f << "<h1>Documentation for commands of CMake " << tmp << "</h1>\n";
@@ -1959,7 +1959,7 @@ int cmake::LoadCache()
if(!this->CacheManager->GetCacheValue("CMAKE_BACKWARDS_COMPATIBILITY"))
{
char ver[256];
- sprintf(ver,"%i.%i",cmMakefile::GetMajorVersion(),
+ snprintf(ver, sizeof ver, "%i.%i",cmMakefile::GetMajorVersion(),
cmMakefile::GetMinorVersion());
this->CacheManager->AddCacheEntry
("CMAKE_BACKWARDS_COMPATIBILITY",ver,