58e493f790
build stuff with system libraries, so we no longer have to repair curl/zlib... just xmlrpc which cmake can't find without help.
16 lines
738 B
Plaintext
16 lines
738 B
Plaintext
$OpenBSD: patch-Source_cmMakefile_cxx,v 1.3 2006/12/18 16:04:32 espie Exp $
|
|
--- Source/cmMakefile.cxx.orig Mon Dec 4 17:03:58 2006
|
|
+++ Source/cmMakefile.cxx Sun Dec 17 11:07:03 2006
|
|
@@ -1983,9 +1983,9 @@ void cmMakefile::AddDefaultDefinitions()
|
|
#endif
|
|
|
|
char temp[1024];
|
|
- sprintf(temp, "%d", cmMakefile::GetMinorVersion());
|
|
+ snprintf(temp, sizeof temp, "%d", cmMakefile::GetMinorVersion());
|
|
this->AddDefinition("CMAKE_MINOR_VERSION", temp);
|
|
- sprintf(temp, "%d", cmMakefile::GetMajorVersion());
|
|
+ snprintf(temp, sizeof temp, "%d", cmMakefile::GetMajorVersion());
|
|
this->AddDefinition("CMAKE_MAJOR_VERSION", temp);
|
|
sprintf(temp, "%d", cmMakefile::GetPatchVersion());
|
|
this->AddDefinition("CMAKE_PATCH_VERSION", temp);
|