]> git.pld-linux.org Git - packages/seamonkey.git/blame - seamonkey-glueload-fix.patch
- updated files when building with system xulrunner (enigmail not supported; mail...
[packages/seamonkey.git] / seamonkey-glueload-fix.patch
CommitLineData
a42f7718 1--- seamonkey-1.1.11/mozilla/xpcom/glue/standalone/nsGlueLinkingDlopen.cpp 2006-02-22 22:57:09.000000000 +0100
2+++ seamonkey-1.1.11/mozilla/xpcom/glue/standalone/nsGlueLinkingDlopen.cpp.fixed 2008-09-23 21:15:21.000000000 +0200
3@@ -86,8 +86,8 @@
4 GetFrozenFunctionsFunc
5 XPCOMGlueLoad(const char *xpcomFile)
6 {
7- char xpcomDir[MAXPATHLEN];
8- if (realpath(xpcomFile, xpcomDir)) {
9+ char * xpcomDir;
10+ if (xpcomDir = realpath(xpcomFile, NULL)) {
11 char *lastSlash = strrchr(xpcomDir, '/');
12 if (lastSlash) {
13 *lastSlash = '\0';
14@@ -98,6 +98,7 @@
15
16 sXULLibHandle = dlopen(xpcomDir, RTLD_GLOBAL | RTLD_LAZY);
17 }
18+ free( xpcomDir );
19 }
20
21 // RTLD_DEFAULT is not defined in non-GNU toolchains, and it is
This page took 0.047163 seconds and 4 git commands to generate.