diff options
author | Liam <30486941+liamHowatt@users.noreply.github.com> | 2024-05-22 08:14:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-22 14:14:12 +0200 |
commit | 3301686ec5b93df10545c5756fef2f9eef0562fd (patch) | |
tree | 5ef93210a655a937560f6c6a4cd455dba7aa8f9c /tests/unity/unity_support.c | |
parent | 25c469db58e0cfc0cc0177de8621a1f11a48a89a (diff) | |
download | lvgl-3301686ec5b93df10545c5756fef2f9eef0562fd.tar.gz lvgl-3301686ec5b93df10545c5756fef2f9eef0562fd.zip |
feat(stdlib): strncpy consistency and add strlcpy (#6204)
Diffstat (limited to 'tests/unity/unity_support.c')
-rw-r--r-- | tests/unity/unity_support.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unity/unity_support.c b/tests/unity/unity_support.c index a2a563977..4907b978a 100644 --- a/tests/unity/unity_support.c +++ b/tests/unity/unity_support.c @@ -198,7 +198,7 @@ static bool screenhot_compare(const char * fn_ref, const char * mode, uint8_t to if(err) { char fn_ref_no_ext[128]; - strcpy(fn_ref_no_ext, fn_ref); + lv_strlcpy(fn_ref_no_ext, fn_ref, sizeof(fn_ref_no_ext)); fn_ref_no_ext[strlen(fn_ref_no_ext) - 4] = '\0'; char fn_err_full[256]; |