diff --git a/sys/boot/common/ufsread.c b/sys/boot/common/ufsread.c index e503a289a1c7..bd9ad2c57103 100644 --- a/sys/boot/common/ufsread.c +++ b/sys/boot/common/ufsread.c @@ -121,7 +121,7 @@ fsfind(const char *name, ufs_ino_t * ino) static ufs_ino_t lookup(const char *path) { - static char name[MAXNAMLEN + 1]; + static char name[UFS_MAXNAMLEN + 1]; const char *s; ufs_ino_t ino; ssize_t n; @@ -135,7 +135,7 @@ lookup(const char *path) if (!*path) break; for (s = path; *s && *s != '/'; s++); - if ((n = s - path) > MAXNAMLEN) + if ((n = s - path) > UFS_MAXNAMLEN) return 0; ls = *path == '?' && n == 1 && !*s; memcpy(name, path, n);