diff options
Diffstat (limited to 'firmware/common/file_internal.c')
-rw-r--r-- | firmware/common/file_internal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/common/file_internal.c b/firmware/common/file_internal.c index 8fee802f6f..a109563092 100644 --- a/firmware/common/file_internal.c +++ b/firmware/common/file_internal.c | |||
@@ -505,7 +505,7 @@ walk_path(struct pathwalk *walkp, struct pathwalk_component *compp, | |||
505 | if (!(compp->attr & ATTR_DIRECTORY)) | 505 | if (!(compp->attr & ATTR_DIRECTORY)) |
506 | return -ENOTDIR; | 506 | return -ENOTDIR; |
507 | 507 | ||
508 | if (len >= MAX_NAME) | 508 | if (len > MAX_COMPNAME) |
509 | return -ENAMETOOLONG; | 509 | return -ENAMETOOLONG; |
510 | 510 | ||
511 | /* check for "." and ".." */ | 511 | /* check for "." and ".." */ |