mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-06 19:32:15 +02:00
Use strncpy and strnlen
This commit is contained in:
parent
f2abbc45db
commit
66674b35a8
@ -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) {
|
||||||
strcpy((char*) &c->short_description, str);
|
&c->short_description = str;
|
||||||
}
|
}
|
||||||
|
|
||||||
void errorConfigSetDetailedDescription(ErrorConfig* c, const char* str) {
|
void errorConfigSetDetailedDescription(ErrorConfig* c, const char* str) {
|
||||||
strcpy((char*) &c->detailed_description, str);
|
&c->detailed_description = str;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user