From 3c7c4565954539496ed1e7df988b8f83c43ce1d0 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Fri, 19 Jul 2002 16:53:28 +0000 Subject: [PATCH] ICU-1992 Put some important deleted code back in. X-SVN-Rev: 9257 --- icu4c/source/common/putil.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/icu4c/source/common/putil.c b/icu4c/source/common/putil.c index 11ca52970a3..d6303aba939 100644 --- a/icu4c/source/common/putil.c +++ b/icu4c/source/common/putil.c @@ -825,6 +825,10 @@ u_setDataDirectory(const char *directory) { length=uprv_strlen(directory); newDataDir = (char *)uprv_malloc(length + 2); uprv_strcpy(newDataDir, directory); + if(newDataDir[length-1]!=U_FILE_SEP_CHAR) { + newDataDir[length++]=U_FILE_SEP_CHAR; + newDataDir[length] = 0; + } umtx_lock(NULL); if (gDataDirectory) {