From ee01f421958c2f9c92cadeefaea0fefc604859d1 Mon Sep 17 00:00:00 2001 From: Paul Aurich Date: Sun, 22 May 2011 15:26:03 -0700 Subject: util.encodings: Fix idna.to_unicode --- util-src/encodings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util-src') diff --git a/util-src/encodings.c b/util-src/encodings.c index 2a4653fb..c258bd40 100644 --- a/util-src/encodings.c +++ b/util-src/encodings.c @@ -315,7 +315,7 @@ static int Lidna_to_unicode(lua_State *L) /** idna.to_unicode(s) */ size_t len; int32_t ulen, dest_len, output_len; const char *s = luaL_checklstring(L, 1, &len); - UChar* ustr; + UChar ustr[1024]; UErrorCode err = U_ZERO_ERROR; UChar dest[1024]; char output[1024]; -- cgit v1.2.3