diff --git a/nx/source/applets/error.cpp b/nx/source/applets/error.cpp index 1eece32d..f4341ff3 100644 --- a/nx/source/applets/error.cpp +++ b/nx/source/applets/error.cpp @@ -46,9 +46,9 @@ void errorConfigSetCustomText(ErrorConfig* c, bool custom_text) { } void errorConfigSetShortDescription(ErrorConfig* c, const char* str) { - &c->short_description = str; + strncpy(c->short_description, str, strnlen(str, 0x800)); } void errorConfigSetDetailedDescription(ErrorConfig* c, const char* str) { - &c->detailed_description = str; + strncpy(c->detailed_description, str, strnlen(str, 0x800)); }