16 lines
738 B
Plaintext
16 lines
738 B
Plaintext
$OpenBSD: patch-Source_cmMakefile_cxx,v 1.5 2008/01/26 21:26:32 espie Exp $
|
|
--- Source/cmMakefile.cxx.orig Mon Jan 21 19:59:53 2008
|
|
+++ Source/cmMakefile.cxx Sat Jan 26 20:47:17 2008
|
|
@@ -1884,9 +1884,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);
|