openbsd-ports/math/freemat/patches/patch-libs_libFreeMat_Module_cpp
martynas f92a087f6f update to freemat 3.0
you need at least 9 days old current system for it (correct
_POSIX_THREAD_ATTR_STACKSIZE define for qt4).
all the patches already got committed upstream.
"please commit!" steven@
2007-03-24 14:14:50 +00:00

13 lines
569 B
Plaintext

$OpenBSD: patch-libs_libFreeMat_Module_cpp,v 1.2 2007/03/24 14:14:50 martynas Exp $
--- libs/libFreeMat/Module.cpp.orig Thu Dec 28 16:02:26 2006
+++ libs/libFreeMat/Module.cpp Sat Mar 24 15:46:48 2007
@@ -379,7 +379,7 @@ ArrayVector ImportFunction(int nargout, const ArrayVec
"return type, argument list");
libfile = arg[0].getContentsAsCString();
libfullpath = psearch.ResolvePath(libfile);
- char buffer[1000];
+ char buffer[PATH_MAX];
// Prepend the current working directory... ugly, but necessary
#ifdef WIN32
_getcwd(buffer,sizeof(buffer));