summaryrefslogtreecommitdiff
path: root/sal/rtl/source
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2003-08-07 13:58:22 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2003-08-07 13:58:22 +0000
commit3fcc5a8e8c3f33a28112cd459c936119861a9848 (patch)
tree5f8800dbc501b90e556a8d6d48a03c3b9c6d1ead /sal/rtl/source
parent9c8196359f526f3a0fdb70dec825308fc3c32761 (diff)
INTEGRATION: CWS sb5 (1.16.108); FILE MERGED
2003/06/16 13:46:22 sb 1.16.108.1: #92543# Fixed rtl_ustr_ascii_compareIgnoreAsciiCase_WithLength to return a correct result if the first string is shorter than the second.
Diffstat (limited to 'sal/rtl/source')
-rw-r--r--sal/rtl/source/ustring.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sal/rtl/source/ustring.c b/sal/rtl/source/ustring.c
index 45333329ed86..546d7664d04d 100644
--- a/sal/rtl/source/ustring.c
+++ b/sal/rtl/source/ustring.c
@@ -2,9 +2,9 @@
*
* $RCSfile: ustring.c,v $
*
- * $Revision: 1.16 $
+ * $Revision: 1.17 $
*
- * last change: $Author: sb $ $Date: 2002-11-05 11:01:37 $
+ * last change: $Author: hr $ $Date: 2003-08-07 14:58:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -299,7 +299,7 @@ sal_Int32 SAL_CALL rtl_ustr_ascii_compareIgnoreAsciiCase_WithLength( const sal_U
do
{
if ( !nStr1Len )
- return 0;
+ return *pStr2 == '\0' ? 0 : -1;
/* If character between 'A' and 'Z', than convert it to lowercase */
c1 = (sal_Int32)*pStr1;