openoffice-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pavelja...@apache.org
Subject svn commit: r1526814 - /openoffice/trunk/main/cppuhelper/source/findsofficepath.c
Date Fri, 27 Sep 2013 07:39:54 GMT
Author: paveljanik
Date: Fri Sep 27 07:39:53 2013
New Revision: 1526814

URL: http://svn.apache.org/r1526814
Log:
Add missing strlen.

Modified:
    openoffice/trunk/main/cppuhelper/source/findsofficepath.c

Modified: openoffice/trunk/main/cppuhelper/source/findsofficepath.c
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/cppuhelper/source/findsofficepath.c?rev=1526814&r1=1526813&r2=1526814&view=diff
==============================================================================
--- openoffice/trunk/main/cppuhelper/source/findsofficepath.c (original)
+++ openoffice/trunk/main/cppuhelper/source/findsofficepath.c Fri Sep 27 07:39:53 2013
@@ -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;



Mime
View raw message