openbsd-ports/devel/cmake/patches/patch-Source_cmMakefile_cxx
espie 9d34b21437 cmake, a `new' build system. Used by KDE4.
Easier to work with than autoconf/automake/libtool.
2006-07-20 09:23:13 +00:00

16 lines
639 B
Plaintext

$OpenBSD: patch-Source_cmMakefile_cxx,v 1.1.1.1 2006/07/20 09:23:13 espie Exp $
--- Source/cmMakefile.cxx.orig Mon Jul 3 12:44:41 2006
+++ Source/cmMakefile.cxx Mon Jul 3 12:45:05 2006
@@ -1811,9 +1811,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);
}