mirror of
https://github.com/ctruLua/ctruLua.git
synced 2025-10-27 16:39:29 +00:00
Ignore the sdmc: prefix in fs.list; added missing space on some strings for the null-termination
This commit is contained in:
parent
0efdc23576
commit
d015918d22
3 changed files with 6 additions and 4 deletions
|
|
@ -91,7 +91,7 @@ static int font_object_width(lua_State *L) {
|
|||
int size = luaL_optinteger(L, 3, 9);
|
||||
|
||||
// Wide caracters support. (wchar = UTF32 on 3DS.)
|
||||
wchar_t wtext[len];
|
||||
wchar_t wtext[len+1];
|
||||
len = mbstowcs(wtext, text, len);
|
||||
*(wtext+len) = 0x0; // text end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue