summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2004-04-29 17:20:44 +0000
committertaca <taca@pkgsrc.org>2004-04-29 17:20:44 +0000
commit1dd6aae87008f31ff15a564e718080ea78887c32 (patch)
tree128a3a03ae560a6aee4baa688f478b3c66a5982b
parentfaac802e77e6a40f4ee46621991b651f98be9769 (diff)
downloadpkgsrc-1dd6aae87008f31ff15a564e718080ea78887c32.tar.gz
Add patch-aa I've forgot to commit.
-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);
+