chore: replacement of std string functions with builtin (#4194)

Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
This commit is contained in:
_VIFEXTech
2023-05-01 17:56:46 +08:00
committed by GitHub
parent 7be3bfd962
commit ac84ae23de
25 changed files with 128 additions and 93 deletions

View File

@@ -130,7 +130,7 @@ void lv_roller_set_options(lv_obj_t * obj, const char * options, lv_roller_mode_
char * opt_extra = lv_malloc(opt_len * roller->inf_page_cnt);
uint8_t i;
for(i = 0; i < roller->inf_page_cnt; i++) {
lv_strncpy(&opt_extra[opt_len * i], options, opt_len);
lv_strcpy(&opt_extra[opt_len * i], options);
opt_extra[opt_len * (i + 1) - 1] = '\n';
}
opt_extra[opt_len * roller->inf_page_cnt - 1] = '\0';