summaryrefslogtreecommitdiff
path: root/security/pgp5
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1998-04-23 22:29:43 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1998-04-23 22:29:43 +0000
commit3f26f87745b1dcaed412c06ec217bd5cf4faf9db (patch)
tree368a8c3fa5baf32b9dbe803b98685a47028cefd1 /security/pgp5
parentAdd png support, I don't know how to add it on PATCHFILES, so I put it on (diff)
Fix sign extension bug in binary type determination
PR: 6342 Submitted by: vitaly@tc.nsc.ru
Notes
Notes: svn path=/head/; revision=10653
Diffstat (limited to 'security/pgp5')
-rw-r--r--security/pgp5/files/patch-aa19
1 files changed, 19 insertions, 0 deletions
diff --git a/security/pgp5/files/patch-aa b/security/pgp5/files/patch-aa
new file mode 100644
index 000000000000..b186465a5bc5
--- /dev/null
+++ b/security/pgp5/files/patch-aa
@@ -0,0 +1,19 @@
+*** lib/pgp/utils/pgpFileType.c.bak Sun Aug 10 04:44:33 1997
+--- lib/pgp/utils/pgpFileType.c Sat Apr 18 22:40:56 1998
+***************
+*** 185,191 ****
+ pgpFileTypeBinary(char const *lang, byte const *buf, unsigned len)
+ {
+ unsigned highlimit;
+! char c;
+
+ if (!len)
+ return 1; /* empty file or error, not a text file */
+--- 185,191 ----
+ pgpFileTypeBinary(char const *lang, byte const *buf, unsigned len)
+ {
+ unsigned highlimit;
+! unsigned char c;
+
+ if (!len)
+ return 1; /* empty file or error, not a text file */