Use strncpy and strnlen

This commit is contained in:
Liam Minopulos 2019-02-27 21:37:50 +01:00
parent f2abbc45db
commit 66674b35a8

View File

@ -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;
}