summaryrefslogtreecommitdiff
path: root/sal/osl/all/filepath.c
diff options
context:
space:
mode:
authorHennes Rohling <hro@openoffice.org>2001-11-09 10:36:51 +0000
committerHennes Rohling <hro@openoffice.org>2001-11-09 10:36:51 +0000
commitf29f4a3a1cfc6cd4beb84cb943f4489f88a66f1a (patch)
tree029f9413d145aa887f5146a9d66a51f433720655 /sal/osl/all/filepath.c
parent8e7ff9d28e01ce957bf81ab865c51a320eb9a371 (diff)
#92631# Implemented system path abbreviation
Diffstat (limited to 'sal/osl/all/filepath.c')
-rw-r--r--sal/osl/all/filepath.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sal/osl/all/filepath.c b/sal/osl/all/filepath.c
index b8c84f05a85f..fed5f2a41c46 100644
--- a/sal/osl/all/filepath.c
+++ b/sal/osl/all/filepath.c
@@ -2,9 +2,9 @@
*
* $RCSfile: filepath.c,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hro $ $Date: 2001-11-09 10:37:54 $
+ * last change: $Author: hro $ $Date: 2001-11-09 11:34:42 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -100,7 +100,7 @@ oslFileError SAL_CALL osl_abbreviateSystemPath( rtl_uString *ustrSystemPath, rtl
while ( uPathWidth + uFileWidth > uMaxWidth )
{
- if ( ustrPath->length >= 3 )
+ if ( ustrPath->length > 3 )
{
ustrPath->length--;
ustrPath->buffer[ustrPath->length-3] = '.';
@@ -118,7 +118,7 @@ oslFileError SAL_CALL osl_abbreviateSystemPath( rtl_uString *ustrSystemPath, rtl
while ( uPathWidth + uFileWidth > uMaxWidth )
{
- if ( ustrFile->length > 3 )
+ if ( ustrFile->length > 4 )
{
ustrFile->length--;
ustrFile->buffer[ustrFile->length-3] = '.';
@@ -138,7 +138,7 @@ oslFileError SAL_CALL osl_abbreviateSystemPath( rtl_uString *ustrSystemPath, rtl
uPathWidth += uFileWidth;
- while ( uPathWidth + uFileWidth > uMaxWidth )
+ while ( uPathWidth > uMaxWidth )
{
(*pustrCompacted)->length--;
(*pustrCompacted)->buffer[(*pustrCompacted)->length] = 0;