git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15228 27425a3e-05d8-49a3-a47f-9c15f0e5edd8

This commit is contained in:
Giovanni Di Sirio 2021-12-09 16:03:58 +00:00
parent 6100c01bdc
commit 4efe731c5e
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ size_t vfs_parse_copy_with_separator(char *dst, const char *src) {
/* Checking if it is terminated by a separator, if not then adding it.*/
if (lc != '/') {
if (n > VFS_CFG_PATHLEN_MAX) {
if (n >= VFS_CFG_PATHLEN_MAX) {
return 0U;
}