mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-06 11:22:15 +02:00
Fix description setter
This commit is contained in:
parent
66674b35a8
commit
eacd10a1ec
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user