openbsd-ports/devel/cmake/patches/patch-Source_cmMakefile_cxx
2007-08-25 08:35:20 +00:00

16 lines
738 B
Plaintext

$OpenBSD: patch-Source_cmMakefile_cxx,v 1.4 2007/08/25 08:35:20 espie Exp $
--- Source/cmMakefile.cxx.orig Mon Jul 16 23:12:31 2007
+++ Source/cmMakefile.cxx Sun Aug 12 16:02:02 2007
@@ -1874,9 +1874,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);