pkgsrc/security/pgp5/patches/patch-ah
mjl ef9aa6b1a6 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').
1999-04-12 22:19:03 +00:00

13 lines
399 B
Text

$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 */