2008-01-26 16:26:32 -05:00
|
|
|
$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()
|
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);
|