From fc60e0868d09abf3d1a91181d0c60e795e88c957 Mon Sep 17 00:00:00 2001 From: Michael Ow Date: Wed, 2 Jun 2010 15:07:52 +0000 Subject: [PATCH] ICU-7680 Increase the buffer size for pkgdata options. X-SVN-Rev: 28124 --- icu4c/source/tools/pkgdata/pkgdata.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/icu4c/source/tools/pkgdata/pkgdata.cpp b/icu4c/source/tools/pkgdata/pkgdata.cpp index 2f85e7a5951..08a517e7900 100644 --- a/icu4c/source/tools/pkgdata/pkgdata.cpp +++ b/icu4c/source/tools/pkgdata/pkgdata.cpp @@ -98,6 +98,7 @@ U_CDECL_END #endif #define LARGE_BUFFER_MAX_SIZE 2048 +#define MEDIUM_BUFFER_MAX_SIZE 1024 #define SMALL_BUFFER_MAX_SIZE 512 static void loadLists(UPKGOptions *o, UErrorCode *status); @@ -605,7 +606,7 @@ static int32_t pkg_executeOptions(UPKGOptions *o) { pkgDataFlags = (char**)uprv_malloc(sizeof(char*) * PKGDATA_FLAGS_SIZE); if (pkgDataFlags != NULL) { for (int32_t i = 0; i < PKGDATA_FLAGS_SIZE; i++) { - pkgDataFlags[i] = (char*)uprv_malloc(sizeof(char) * SMALL_BUFFER_MAX_SIZE); + pkgDataFlags[i] = (char*)uprv_malloc(sizeof(char) * MEDIUM_BUFFER_MAX_SIZE); if (pkgDataFlags[i] != NULL) { pkgDataFlags[i][0] = 0; } else {