summaryrefslogtreecommitdiff
path: root/sal/rtl/source/ustring.c
diff options
context:
space:
mode:
authorth <th@openoffice.org>2001-05-22 09:21:55 +0000
committerth <th@openoffice.org>2001-05-22 09:21:55 +0000
commite4dc0fe8dff4c5c7041568155e81a6d37fec95f6 (patch)
tree688ee6e0cf92b5899c8192bf7782eb8404448536 /sal/rtl/source/ustring.c
parentea4a26a432ca9b8b60793de05df30156ed56df8f (diff)
#87352# - rtl_ustr_compare_ascii_WithLength() works now different
Diffstat (limited to 'sal/rtl/source/ustring.c')
-rw-r--r--sal/rtl/source/ustring.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sal/rtl/source/ustring.c b/sal/rtl/source/ustring.c
index db151ce2c7b1..a7d2ddb24c86 100644
--- a/sal/rtl/source/ustring.c
+++ b/sal/rtl/source/ustring.c
@@ -2,9 +2,9 @@
*
* $RCSfile: ustring.c,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: th $ $Date: 2001-05-15 08:26:52 $
+ * last change: $Author: th $ $Date: 2001-05-22 10:21:55 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -189,10 +189,9 @@ sal_Int32 SAL_CALL rtl_ustr_ascii_compare_WithLength( const sal_Unicode* pStr1,
const sal_Char* pStr2 )
{
sal_Int32 nRet = 0;
- while( nStr1Len &&
- ((nRet = ((sal_Int32)(*pStr1))-
+ while( ((nRet = ((sal_Int32)(*pStr1))-
((sal_Int32)((unsigned char)(*pStr2)))) == 0) &&
- *pStr2 )
+ nStr1Len && *pStr2 )
{
pStr1++;
pStr2++;