提交 bf60ef80 编写于 作者: O openharmony_ci 提交者: Gitee

!19 FatFs在文件名长度到达最大长度254时,不能正确显示长文件名

Merge pull request !19 from 野生毛霉君/master
......@@ -1662,7 +1662,7 @@ static int pick_lfn ( /* 1:succeeded, 0:buffer overflow or invalid LFN entry */
}
if (dir[LDIR_Ord] & LLEF) { /* Put terminator if it is the last LFN part */
if (i >= FF_MAX_LFN) return 0; /* Buffer overflow? */
if (i > FF_MAX_LFN) return 0; /* Buffer overflow? */
lfnbuf[i] = 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册