diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1998-04-24 06:29:43 +0800 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1998-04-24 06:29:43 +0800 |
commit | 3f26f87745b1dcaed412c06ec217bd5cf4faf9db (patch) | |
tree | 368a8c3fa5baf32b9dbe803b98685a47028cefd1 /security/pgp5 | |
parent | 66f9ae4f4cfca34d9f9284a03689a817c4a7e581 (diff) | |
download | freebsd-ports-gnome-3f26f87745b1dcaed412c06ec217bd5cf4faf9db.tar.gz freebsd-ports-gnome-3f26f87745b1dcaed412c06ec217bd5cf4faf9db.tar.zst freebsd-ports-gnome-3f26f87745b1dcaed412c06ec217bd5cf4faf9db.zip |
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-aa | 19 |
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 */ |