mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-06 22:15:31 +00:00
ICU-11765 fix string length in udatpg_test.c TestUsage()
X-SVN-Rev: 37893
This commit is contained in:
parent
1dc53cb9cf
commit
079f95c9a9
1 changed files with 2 additions and 2 deletions
|
@ -217,10 +217,10 @@ static void TestUsage() {
|
|||
}
|
||||
|
||||
/* set append name to hr */
|
||||
udatpg_setAppendItemName( dtpg, UDATPG_HOUR_FIELD, appendItemName, 7 );
|
||||
udatpg_setAppendItemName(dtpg, UDATPG_HOUR_FIELD, appendItemName, 2);
|
||||
r = udatpg_getAppendItemName(dtpg, UDATPG_HOUR_FIELD, &length);
|
||||
|
||||
if(length!=7 || 0!=u_memcmp(r, appendItemName, length) || r[length]!=0) {
|
||||
if(length!=2 || 0!=u_memcmp(r, appendItemName, length) || r[length]!=0) {
|
||||
log_err("udatpg_setAppendItemName did not return the expected string\n");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue