From 3fcc5a8e8c3f33a28112cd459c936119861a9848 Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Thu, 7 Aug 2003 13:58:22 +0000 Subject: 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. --- sal/rtl/source/ustring.c | 6 +++--- 1 file 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; -- cgit