summaryrefslogtreecommitdiff
path: root/misc/p5-File-MMagic
diff options
context:
space:
mode:
authortaca <taca>2004-04-29 17:20:44 +0000
committertaca <taca>2004-04-29 17:20:44 +0000
commit80a207b3ff18f6496af7f3a436e8a9cd8616dc43 (patch)
tree128a3a03ae560a6aee4baa688f478b3c66a5982b /misc/p5-File-MMagic
parent382149414ce4255333ba3199b81bed671dd269c2 (diff)
downloadpkgsrc-80a207b3ff18f6496af7f3a436e8a9cd8616dc43.tar.gz
Add patch-aa I've forgot to commit.
Diffstat (limited to 'misc/p5-File-MMagic')
-rw-r--r--misc/p5-File-MMagic/patches/patch-aa13
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);
+