From a42f771885c065791abd05374bafe4ebf500747b Mon Sep 17 00:00:00 2001 From: sparky Date: Tue, 23 Sep 2008 20:17:56 +0000 Subject: [PATCH] - fix realpath() call Changed files: seamonkey-glueload-fix.patch -> 1.1 --- seamonkey-glueload-fix.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 seamonkey-glueload-fix.patch diff --git a/seamonkey-glueload-fix.patch b/seamonkey-glueload-fix.patch new file mode 100644 index 0000000..0da2ee4 --- /dev/null +++ b/seamonkey-glueload-fix.patch @@ -0,0 +1,21 @@ +--- seamonkey-1.1.11/mozilla/xpcom/glue/standalone/nsGlueLinkingDlopen.cpp 2006-02-22 22:57:09.000000000 +0100 ++++ seamonkey-1.1.11/mozilla/xpcom/glue/standalone/nsGlueLinkingDlopen.cpp.fixed 2008-09-23 21:15:21.000000000 +0200 +@@ -86,8 +86,8 @@ + GetFrozenFunctionsFunc + XPCOMGlueLoad(const char *xpcomFile) + { +- char xpcomDir[MAXPATHLEN]; +- if (realpath(xpcomFile, xpcomDir)) { ++ char * xpcomDir; ++ if (xpcomDir = realpath(xpcomFile, NULL)) { + char *lastSlash = strrchr(xpcomDir, '/'); + if (lastSlash) { + *lastSlash = '\0'; +@@ -98,6 +98,7 @@ + + sXULLibHandle = dlopen(xpcomDir, RTLD_GLOBAL | RTLD_LAZY); + } ++ free( xpcomDir ); + } + + // RTLD_DEFAULT is not defined in non-GNU toolchains, and it is -- 2.44.0