From 66674b35a81e5a722218a824c59f55462e38800b Mon Sep 17 00:00:00 2001 From: Liam Minopulos Date: Wed, 27 Feb 2019 21:37:50 +0100 Subject: [PATCH] Use strncpy and strnlen --- nx/source/applets/error.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }