Add a patch to avoid possible SIGSEGV in command_completion - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
 (HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) changeset d9b0d181dc25a1c674fb601508dc80366411c760
 (DIR) parent 55dc8ef6980d40c0e4ea76e9da2ad1c0ba5765e7
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Wed, 26 Sep 2018 18:48:33 
       
       Add a patch to avoid possible SIGSEGV in command_completion
       
       Diffstat:
        chat/ircII/patch-source_edit.c |  28 ++++++++++++++++++++++++++++
        1 files changed, 28 insertions(+), 0 deletions(-)
       ---
       diff -r 55dc8ef6980d -r d9b0d181dc25 chat/ircII/patch-source_edit.c
       --- /dev/null   Thu Jan 01 00:00:00 1970 +0000
       +++ b/chat/ircII/patch-source_edit.c    Wed Sep 26 18:48:33 2018 +0200
       @@ -0,0 +1,28 @@
       +$NetBSD$
       +
       +Fix a possible SIGSEGV when doing:
       +
       + /bind ^I command_completion
       + /^I
       +
       +NUMBER_OF_COMMANDS should be decreased by 2 for `cmd_cnt' in the special case
       +for the empty string because:
       +
       + - We should omit the first command in irc_command[] (via the `command++' line
       +   before cmd_cnt assignment)
       + - We should also omit the last NULL command in irc_command[].
       +
       +This will be no longer needed on newer ircII stable version, <mrg>
       +fixed it in a cleaner way!
       +
       +--- source/edit.c.orig 2017-07-04 06:48:25.000000000 +0000
       ++++ source/edit.c
       +@@ -2403,7 +2403,7 @@ command_completion(u_int key, u_char *pt
       +                               if (*(command[0].name) == '\0')
       +                               {
       +                                       command++;
       +-                                      cmd_cnt = NUMBER_OF_COMMANDS;
       ++                                      cmd_cnt = NUMBER_OF_COMMANDS - 2;
       +                               }
       +                       }
       +                       if ((alias_cnt == 1) && (cmd_cnt == 0))