From fb1f737cc7ccf9e456bec76b441ed5300f795bb0 Mon Sep 17 00:00:00 2001 From: Markus Scherer Date: Sat, 5 Sep 2015 19:17:55 +0000 Subject: [PATCH] ICU-11765 fix custrtst.c TestCountChar32(): need to use NUL-terminated buffer when testing NUL termination, not unterminated string X-SVN-Rev: 37891 --- icu4c/source/test/cintltst/custrtst.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icu4c/source/test/cintltst/custrtst.c b/icu4c/source/test/cintltst/custrtst.c index fe84080afb0..a298e7c9d0c 100644 --- a/icu4c/source/test/cintltst/custrtst.c +++ b/icu4c/source/test/cintltst/custrtst.c @@ -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;