2006-12-18 11:04:31 -05:00
|
|
|
$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()
|
2006-07-20 05:23:13 -04:00
|
|
|
#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);
|
2006-07-31 19:55:51 -04:00
|
|
|
sprintf(temp, "%d", cmMakefile::GetPatchVersion());
|
|
|
|
this->AddDefinition("CMAKE_PATCH_VERSION", temp);
|