util.encodings: Fix idna.to_unicode
authorPaul Aurich <paul@darkrain42.org>
Sun, 22 May 2011 22:26:03 +0000 (15:26 -0700)
committerPaul Aurich <paul@darkrain42.org>
Sun, 22 May 2011 22:26:03 +0000 (15:26 -0700)
util-src/encodings.c

index 2a4653fbf15979ca525046dc48d112686ecf9063..c258bd40dafffe5c2967e5262818118e2bf72099 100644 (file)
@@ -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];