diff --git a/nx/source/applets/error.cpp b/nx/source/applets/error.cpp index c50ca30a..1eece32d 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) { - strcpy((char*) &c->short_description, str); + &c->short_description = str; } void errorConfigSetDetailedDescription(ErrorConfig* c, const char* str) { - strcpy((char*) &c->detailed_description, str); + &c->detailed_description = str; }