]> git.pld-linux.org Git - packages/seamonkey.git/commitdiff
- fix realpath() call
authorsparky <sparky@pld-linux.org>
Tue, 23 Sep 2008 20:17:56 +0000 (20:17 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    seamonkey-glueload-fix.patch -> 1.1

seamonkey-glueload-fix.patch [new file with mode: 0644]

diff --git a/seamonkey-glueload-fix.patch b/seamonkey-glueload-fix.patch
new file mode 100644 (file)
index 0000000..0da2ee4
--- /dev/null
@@ -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
This page took 0.194577 seconds and 4 git commands to generate.