58e493f790
build stuff with system libraries, so we no longer have to repair curl/zlib... just xmlrpc which cmake can't find without help.
28 lines
1007 B
Plaintext
28 lines
1007 B
Plaintext
$OpenBSD: patch-Source_cmLocalUnixMakefileGenerator3_cxx,v 1.3 2006/12/18 16:04:32 espie Exp $
|
|
--- Source/cmLocalUnixMakefileGenerator3.cxx.orig Mon Dec 4 17:03:58 2006
|
|
+++ Source/cmLocalUnixMakefileGenerator3.cxx Sun Dec 17 11:07:03 2006
|
|
@@ -1140,7 +1140,7 @@ cmLocalUnixMakefileGenerator3
|
|
while(this->ShortMakeVariableMap.count(ret) && ni < 1000)
|
|
{
|
|
++ni;
|
|
- sprintf(buffer, "%04d", ni);
|
|
+ snprintf(buffer, sizeof buffer, "%04d", ni);
|
|
ret = unmodified + buffer;
|
|
}
|
|
this->ShortMakeVariableMap[ret] = "1";
|
|
@@ -1168,12 +1168,12 @@ cmLocalUnixMakefileGenerator3
|
|
}
|
|
char buffer[5];
|
|
int ni = 0;
|
|
- sprintf(buffer, "%04d", ni);
|
|
+ snprintf(buffer, sizeof buffer, "%04d", ni);
|
|
ret = str1 + str2 + buffer;
|
|
while(this->ShortMakeVariableMap.count(ret) && ni < 1000)
|
|
{
|
|
++ni;
|
|
- sprintf(buffer, "%04d", ni);
|
|
+ snprintf(buffer, sizeof buffer, "%04d", ni);
|
|
ret = str1 + str2 + buffer;
|
|
}
|
|
if(ni == 1000)
|