From 6264fe3f47c17e943e9c4d7138e063b65af3ac92 Mon Sep 17 00:00:00 2001 From: Markus Scherer Date: Thu, 6 Jul 2006 06:19:23 +0000 Subject: [PATCH] ICU-5188 allow empty substitution string X-SVN-Rev: 19791 --- icu4c/source/test/intltest/convtest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icu4c/source/test/intltest/convtest.cpp b/icu4c/source/test/intltest/convtest.cpp index f929eea05d6..05da2ce1c1c 100644 --- a/icu4c/source/test/intltest/convtest.cpp +++ b/icu4c/source/test/intltest/convtest.cpp @@ -271,7 +271,7 @@ ConversionTest::TestFromUnicode() { // read a substitution string, separated by an equal sign p=s.getBuffer()+index+1; length=s.length()-(index+1); - if(length<=0 || length>=LENGTHOF(cc.subString)) { + if(length<0 || length>=LENGTHOF(cc.subString)) { errorCode=U_ILLEGAL_ARGUMENT_ERROR; } else { u_memcpy(cc.subString, p, length);