From de8965f8538e797bdcd65758f3fb3bdd0b8e3288 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Wed, 7 Mar 2001 01:16:17 +0000 Subject: [PATCH] ICU-882 Don't use the deprecated API. X-SVN-Rev: 3931 --- icu4c/source/i18n/translit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icu4c/source/i18n/translit.cpp b/icu4c/source/i18n/translit.cpp index ca8ee4f043..e2c4caf7f8 100644 --- a/icu4c/source/i18n/translit.cpp +++ b/icu4c/source/i18n/translit.cpp @@ -637,7 +637,7 @@ Transliterator* Transliterator::_createInstance(const UnicodeString& ID, // name; this in no way represents an actual locale. char *ch; - ch = new char[entry->stringArg.size() + 1]; + ch = new char[entry->stringArg.length() + 1]; ch[entry->stringArg.extract(0, 0x7fffffff, ch, "")] = 0; Locale fakeLocale(ch); delete [] ch;