diff options
author | mjl <mjl> | 1999-04-12 22:19:03 +0000 |
---|---|---|
committer | mjl <mjl> | 1999-04-12 22:19:03 +0000 |
commit | 49a2aa02241cdec09687ed71016ad50f3febb632 (patch) | |
tree | 15711e941b2ba54596aa29e179d022594d0d2f7e /security/pgp5/patches/patch-ah | |
parent | 40fda8eb3ed72f6ff0c46b1709dff8331ee1f919 (diff) | |
download | pkgsrc-49a2aa02241cdec09687ed71016ad50f3febb632.tar.gz |
Correct "check for binary file" which used signed char erroneously,
as pointed out by Bjoern Labitzke <hermit@cs.tu-berlin.de> in PR/7359.
While I'm at it, also correct the behaviour when invoked as "pgp5"
(give usage, not unhelpful 'invoked with unknown symbolic link').
Diffstat (limited to 'security/pgp5/patches/patch-ah')
-rw-r--r-- | security/pgp5/patches/patch-ah | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/security/pgp5/patches/patch-ah b/security/pgp5/patches/patch-ah new file mode 100644 index 00000000000..f76ef66a31f --- /dev/null +++ b/security/pgp5/patches/patch-ah @@ -0,0 +1,13 @@ +$NetBSD: patch-ah,v 1.1 1999/04/12 22:19:03 mjl Exp $ + +--- lib/pgp/utils/pgpFileType.c.orig Tue Apr 13 00:01:40 1999 ++++ lib/pgp/utils/pgpFileType.c Tue Apr 13 00:02:14 1999 +@@ -185,7 +185,7 @@ + pgpFileTypeBinary(char const *lang, byte const *buf, unsigned len) + { + unsigned highlimit; +- char c; ++ unsigned char c; + + if (!len) + return 1; /* empty file or error, not a text file */ |