From 808af26ed32ff0e9f768b932ac629e47220a3f3b Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Sat, 1 Jun 2024 10:04:48 +0300 Subject: [PATCH] Added length check on complete name --- fcb/fcb.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fcb/fcb.go b/fcb/fcb.go index a654e71..3430384 100644 --- a/fcb/fcb.go +++ b/fcb/fcb.go @@ -295,6 +295,11 @@ func (f *FCB) DoesMatch(name string) bool { } } + // If the name is too long that's a nope too + if len(name) > 8+3 { + return false + } + // Create a temporary FCB for the specified filename. tmp := FromString(name)