[Libreoffice-commits] core.git: Branch 'aoo/trunk' - cppuhelper/source
Pavel JanÃk
paveljanik at apache.org
Fri Sep 27 01:09:58 PDT 2013
cppuhelper/source/findsofficepath.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 735cd4852c88aaedeecd16486238e1e62bc4652c
Author: Pavel JanÃk <paveljanik at apache.org>
Date: Fri Sep 27 07:39:53 2013 +0000
Add missing strlen.
diff --git a/cppuhelper/source/findsofficepath.c b/cppuhelper/source/findsofficepath.c
index 8c13676..a82b5e8 100644
--- a/cppuhelper/source/findsofficepath.c
+++ b/cppuhelper/source/findsofficepath.c
@@ -154,7 +154,7 @@ static char* platformSpecific()
if ( !access( MACDEFAULTSOFFICE, F_OK ) )
{
- path = (char*) malloc( MACDEFAULTOFFICEPATH + 1 );
+ path = (char*) malloc( strlen(MACDEFAULTOFFICEPATH) + 1 );
strcpy( path, MACDEFAULTOFFICEPATH);
}
return path;
More information about the Libreoffice-commits
mailing list