openbsd-ports/devel/cmake/patches/patch-Source_cmMakefile_cxx

16 lines
738 B
Plaintext
Raw Normal View History

2007-08-25 04:35:20 -04:00
$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);
2006-07-31 19:55:51 -04:00
sprintf(temp, "%d", cmMakefile::GetPatchVersion());
this->AddDefinition("CMAKE_PATCH_VERSION", temp);