git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15228 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
6100c01bdc
commit
4efe731c5e
|
@ -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.*/
|
/* Checking if it is terminated by a separator, if not then adding it.*/
|
||||||
if (lc != '/') {
|
if (lc != '/') {
|
||||||
|
|
||||||
if (n > VFS_CFG_PATHLEN_MAX) {
|
if (n >= VFS_CFG_PATHLEN_MAX) {
|
||||||
return 0U;
|
return 0U;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue