diff options
author | bsiegert <bsiegert@pkgsrc.org> | 2014-11-28 10:53:40 +0000 |
---|---|---|
committer | bsiegert <bsiegert@pkgsrc.org> | 2014-11-28 10:53:40 +0000 |
commit | 4a2b68d419aec56a0692919e8a6e61466a623431 (patch) | |
tree | 33464d8c36ee3335c483f9144c5a85acb04e82e9 /security/pgp5/patches/patch-lib_ttyui_pgpOutput.c | |
parent | 30f37c7d124cd3492fee26335381d6787fa88dab (diff) | |
download | pkgsrc-4a2b68d419aec56a0692919e8a6e61466a623431.tar.gz |
Fix off-by-one in tty output library. Patch provided by Wada Keiji in
PR pkg/49312.
Diffstat (limited to 'security/pgp5/patches/patch-lib_ttyui_pgpOutput.c')
-rw-r--r-- | security/pgp5/patches/patch-lib_ttyui_pgpOutput.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/security/pgp5/patches/patch-lib_ttyui_pgpOutput.c b/security/pgp5/patches/patch-lib_ttyui_pgpOutput.c new file mode 100644 index 00000000000..fc17c1c8880 --- /dev/null +++ b/security/pgp5/patches/patch-lib_ttyui_pgpOutput.c @@ -0,0 +1,13 @@ +$NetBSD: patch-lib_ttyui_pgpOutput.c,v 1.1 2014/11/28 10:53:40 bsiegert Exp $ + +--- lib/ttyui/pgpOutput.c.orig 2014-11-28 10:49:41.000000000 +0000 ++++ lib/ttyui/pgpOutput.c +@@ -38,7 +38,7 @@ char OutputHeader[OUTPUT_LAST + 1][4] = + Boolean gShowHeaders = FALSE; + + static PREFS *pInternalLanguageStrings = NULL; +-static FILE *OutputHandle[OUTPUT_LAST]; ++static FILE *OutputHandle[OUTPUT_LAST + 1]; + static int RawOutputID(int OutputType, + PgpSeverityLevel Level, + Boolean DisplayHeader, |