Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
$NetBSD: patch-libexec_pkemine.cpp,v 1.1 2012/10/03 14:40:23 marino Exp $
Fix segfault bug - "is" equals std::cin when infile == "-". This delete
command was intended for allocated std::instream object.
--- libexec/pkemine.cpp.orig 2004-03-12 17:12:13.000000000 +0000
+++ libexec/pkemine.cpp
@@ -250,7 +250,7 @@ int main (int argc, char **argv)
PKEMine pkemine (sigma, minsup, maxpat);
pkemine.run (*is, os);
- if (infile == "-") delete is;
+ if (infile != "-") delete is;
return 0;
}