$OpenBSD: patch-Source_cmMakefile_cxx,v 1.2 2006/07/31 23:55:51 espie Exp $ --- Source/cmMakefile.cxx.orig Mon Jul 31 16:49:57 2006 +++ Source/cmMakefile.cxx Tue Aug 1 00:32:19 2006 @@ -1908,9 +1908,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);