summaryrefslogtreecommitdiffstats
path: root/security/pgp5
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1998-04-23 22:29:43 +0000
committerache <ache@FreeBSD.org>1998-04-23 22:29:43 +0000
commit96d1a722d4a4894f1fd922479e5f43fd80b53eb8 (patch)
tree8efb94d5cd222965b822ff5a5412548dac7c3506 /security/pgp5
parent81295f284964d35e5e629dce3d10eeaf810323c0 (diff)
downloadFreeBSD-ports-96d1a722d4a4894f1fd922479e5f43fd80b53eb8.zip
FreeBSD-ports-96d1a722d4a4894f1fd922479e5f43fd80b53eb8.tar.gz
Fix sign extension bug in binary type determination
PR: 6342 Submitted by: vitaly@tc.nsc.ru
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 0000000..b186465
--- /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 */
OpenPOWER on IntegriCloud