mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-15 01:42:37 +00:00
ICU-5188 allow empty substitution string
X-SVN-Rev: 19791
This commit is contained in:
parent
93bef44b15
commit
6264fe3f47
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue