1
0
Fork 0
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:
Reuh 2015-10-25 12:03:21 +01:00
parent 0efdc23576
commit d015918d22
3 changed files with 6 additions and 4 deletions

View file

@ -276,7 +276,7 @@ static int gfx_text(lua_State *L) {
if (font->font == NULL) luaL_error(L, "The font object was unloaded");
// 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
@ -316,7 +316,7 @@ static int gfx_wrappedText(lua_State *L) {
// Wide caracters support. (wchar = UTF32 on 3DS.)
// Disabled as sftd_draw_wtext_wrap() doesn't exist.
/*wchar_t wtext[len];
/*wchar_t wtext[len+1];
len = mbstowcs(wtext, text, len);
*(wtext+len) = 0x0; // text end */