From 7265cad51feddec535b81f94e644712618b76ecf Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 2 Feb 2010 12:26:20 +0100 Subject: [PATCH] Fix icu_tokenizer_clone (ubrk_safeClone) --- src/icu_tokenizer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/icu_tokenizer.c b/src/icu_tokenizer.c index e8d3123..d6ec7fe 100644 --- a/src/icu_tokenizer.c +++ b/src/icu_tokenizer.c @@ -61,8 +61,8 @@ static void icu_tokenizer_reset(struct icu_tokenizer *tokenizer, struct icu_tokenizer *icu_tokenizer_clone(struct icu_tokenizer *old) { - uint32_t bufferSize = 10000; - UErrorCode status = 0; + int32_t bufferSize = U_BRK_SAFECLONE_BUFFERSIZE; + UErrorCode status = U_ZERO_ERROR; struct icu_tokenizer * tokenizer = (struct icu_tokenizer *) xmalloc(sizeof(struct icu_tokenizer)); -- 1.7.10.4