summaryrefslogtreecommitdiff
path: root/misc/p5-File-MMagic
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
commit32942d578f40ee98cdf94350ebeb0a344005d471 (patch)
tree128a3a03ae560a6aee4baa688f478b3c66a5982b /misc/p5-File-MMagic
parent056c939376ff0a3b67657fcf4ef4dbbbddbb10b4 (diff)
downloadpkgsrc-32942d578f40ee98cdf94350ebeb0a344005d471.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);
+