util.encodings: Fix idna.to_unicode
authorPaul Aurich <paul@darkrain42.org>
Sun, 22 May 2011 15:26:03 -0700
changeset 4271 18d888c8c12d
parent 4270 d2d47fde9811
child 4272 0a4ce2086a88
util.encodings: Fix idna.to_unicode
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];