diff options
-rw-r--r-- | misc/p5-File-MMagic/patches/patch-aa | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/misc/p5-File-MMagic/patches/patch-aa b/misc/p5-File-MMagic/patches/patch-aa new file mode 100644 index 00000000000..25a50cae321 --- /dev/null +++ b/misc/p5-File-MMagic/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1 2004/04/29 17:20:44 taca Exp $ + +--- MMagic.pm.orig 2004-03-15 17:23:04.000000000 +0900 ++++ MMagic.pm +@@ -985,6 +985,8 @@ sub magicMatchStr { + else { + #numeric + ++ return if (length($str) < 4); ++ + # read up to 4 bytes + $data = substr($str, 0, 4); + |