feat(fs): add fn_len for lv_fs_dir_read (#5362)

This commit is contained in:
Benign X
2024-01-17 21:41:54 +08:00
committed by GitHub
parent 122acbd00f
commit 2001d869a1
9 changed files with 33 additions and 29 deletions

View File

@@ -125,7 +125,7 @@ practice to insert a ``'/'`` in front of each directory name.
char fn[256];
while(1) {
res = lv_fs_dir_read(&dir, fn);
res = lv_fs_dir_read(&dir, fn, sizeof(fn));
if(res != LV_FS_RES_OK) {
my_error_handling();
break;