cppuhelper/source/findsofficepath.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 735cd4852c88aaedeecd16486238e1e62bc4652c
Author: Pavel Janík <pavelja...@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;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to