Fix description setter

This commit is contained in:
Liam Minopulos 2019-02-27 21:39:29 +01:00
parent 66674b35a8
commit eacd10a1ec

View File

@ -46,9 +46,9 @@ void errorConfigSetCustomText(ErrorConfig* c, bool custom_text) {
} }
void errorConfigSetShortDescription(ErrorConfig* c, const char* str) { 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) { void errorConfigSetDetailedDescription(ErrorConfig* c, const char* str) {
&c->detailed_description = str; strncpy(c->detailed_description, str, strnlen(str, 0x800));
} }