# HG changeset patch # User Paul Aurich # Date 1306103163 25200 # Node ID 18d888c8c12d5ccb292dc1053fa519710d914003 # Parent d2d47fde981187f922f6a46f7dd7ffa15a3f254f util.encodings: Fix idna.to_unicode diff -r d2d47fde9811 -r 18d888c8c12d util-src/encodings.c --- a/util-src/encodings.c Sat May 28 00:23:05 2011 +0100 +++ b/util-src/encodings.c Sun May 22 15:26:03 2011 -0700 @@ -315,7 +315,7 @@ 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];