summaryrefslogtreecommitdiff
path: root/Build/source/libs/icu-xetex/common/resbund_cnv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/icu-xetex/common/resbund_cnv.cpp')
-rw-r--r--Build/source/libs/icu-xetex/common/resbund_cnv.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Build/source/libs/icu-xetex/common/resbund_cnv.cpp b/Build/source/libs/icu-xetex/common/resbund_cnv.cpp
index 871f025e014..a18e57e3106 100644
--- a/Build/source/libs/icu-xetex/common/resbund_cnv.cpp
+++ b/Build/source/libs/icu-xetex/common/resbund_cnv.cpp
@@ -1,7 +1,7 @@
/*
*******************************************************************************
*
-* Copyright (C) 1997-2004, International Business Machines
+* Copyright (C) 1997-2006, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
@@ -47,7 +47,8 @@ ResourceBundle::constructForLocale(const UnicodeString& path,
}
else {
UnicodeString nullTerminatedPath(path);
- fResource = ures_openU(nullTerminatedPath.getTerminatedBuffer(), locale.getName(), &error);
+ nullTerminatedPath.append((UChar)0);
+ fResource = ures_openU(nullTerminatedPath.getBuffer(), locale.getName(), &error);
}
}