Skip to content

Commit

Permalink
Bug fix (typo - "wchar" instead of "wchar_t")
Browse files Browse the repository at this point in the history
  • Loading branch information
jleveque authored and ojwb committed Dec 12, 2013
1 parent bef3cfe commit c7ef593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/lua/wchar.i
Expand Up @@ -16,7 +16,7 @@ wchar_t* str2wstr(const char *str, int len)
{
wchar_t* p;
if (str==0 || len<1) return 0;
p=(wchar *)malloc((len+1)*sizeof(wchar_t));
p=(wchar_t *)malloc((len+1)*sizeof(wchar_t));
if (p==0) return 0;
if (mbstowcs(p, str, len)==(size_t)-1)
{
Expand Down

0 comments on commit c7ef593

Please sign in to comment.