diff options
author | Ping Liao <pliao@openoffice.org> | 2001-02-07 02:40:09 +0000 |
---|---|---|
committer | Ping Liao <pliao@openoffice.org> | 2001-02-07 02:40:09 +0000 |
commit | 7629ea50fb620d56b03263244f06b47bfbd755e5 (patch) | |
tree | ae3f957ebcabc6d22b24651e081f39430381b136 /sal/osl | |
parent | fa0ab14b471964cfca7268066cb14b420250e696 (diff) |
Added MACOSX linker/loader bug workaround code.
Diffstat (limited to 'sal/osl')
-rw-r--r-- | sal/osl/unx/module.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sal/osl/unx/module.c b/sal/osl/unx/module.c index 45a1a8847767..e07454a94d4e 100644 --- a/sal/osl/unx/module.c +++ b/sal/osl/unx/module.c @@ -2,9 +2,9 @@ * * $RCSfile: module.c,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: pliao $ $Date: 2001-02-05 00:44:08 $ + * last change: $Author: pliao $ $Date: 2001-02-07 03:40:09 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -268,9 +268,12 @@ oslModule SAL_CALL osl_psz_loadModule(const sal_Char *pszModuleName, sal_Int32 n if ( pModule ) { + // ignore ".dylib.framework" + int len = strlen( pszModuleName ) - 16; pModule->pModule = pLib; - pModule->pModuleName = (sal_Char *)malloc( strlen( pszModuleName ) ); - strcpy( pModule->pModuleName, pszModuleName ); + pModule->pModuleName = (sal_Char *)malloc( len ); + strncpy( pModule->pModuleName, pszModuleName, len ); + pModule->pModuleName[len] = '\0'; } return pModule; |