ICU-11765 fix custrtst.c TestCountChar32(): need to use NUL-terminated buffer when testing NUL termination, not unterminated string

X-SVN-Rev: 37891
This commit is contained in:
Markus Scherer 2015-09-05 19:17:55 +00:00
parent a45bac77fe
commit fb1f737cc7

View File

@ -1,7 +1,7 @@
/*
******************************************************************************
*
* Copyright (C) 2002-2014, International Business Machines
* Copyright (C) 2002-2015, International Business Machines
* Corporation and others. All Rights Reserved.
*
******************************************************************************
@ -1160,7 +1160,7 @@ TestCountChar32() {
buffer[length]=0;
for(i=0; i<=length; ++i) {
for(number=-1; number<=((length-i)+2); ++number) {
_testStrHasMoreChar32Than(string+i, i, -1, number);
_testStrHasMoreChar32Than(buffer+i, i, -1, number);
}
}
--length;