From: Adam Dickmeiss Date: Tue, 2 Feb 2010 11:26:20 +0000 (+0100) Subject: Fix icu_tokenizer_clone (ubrk_safeClone) X-Git-Tag: v4.0.2~21 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=7265cad51feddec535b81f94e644712618b76ecf;p=yaz-moved-to-github.git Fix icu_tokenizer_clone (ubrk_safeClone) --- 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));