summaryrefslogtreecommitdiff
path: root/cppuhelper
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2008-09-03 11:20:34 +0000
committerOliver Bolte <obo@openoffice.org>2008-09-03 11:20:34 +0000
commit0a0304e5e07fc91f329c8cb736ed16a95beefa27 (patch)
treeb91f8d4810e45685a8e54ba7f4439a56e9069366 /cppuhelper
parent53a4ddb1afbdaa4f6745198f2ab39dbfbab9f186 (diff)
#i93393# crasher when looking for soffice path
Diffstat (limited to 'cppuhelper')
-rw-r--r--cppuhelper/source/findsofficepath.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cppuhelper/source/findsofficepath.c b/cppuhelper/source/findsofficepath.c
index 696935310066..d50fad066b36 100644
--- a/cppuhelper/source/findsofficepath.c
+++ b/cppuhelper/source/findsofficepath.c
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: findsofficepath.c,v $
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
* This file is part of OpenOffice.org.
*
@@ -112,6 +112,7 @@ static char* platformSpecific()
#else
#include <unistd.h>
+#include <limits.h>
/*
* Gets the installation path from the PATH environment variable.
@@ -137,7 +138,7 @@ static char* platformSpecific()
char* resolved = NULL;
char* sep = NULL;
- char buffer[1024];
+ char buffer[PATH_MAX];
int pos;
/* get the value of the PATH environment variable */