FIX crash when `bind'ing over existing binding!..
commit490b5347ceea7b14f2d03c1be60e3eefbe338c6c
authorSteffen (Daode) Nurpmeso <steffen@sdaoden.eu>
Sat, 22 Apr 2017 12:05:39 +0000 (22 14:05 +0200)
committerSteffen (Daode) Nurpmeso <steffen@sdaoden.eu>
Sat, 22 Apr 2017 13:15:34 +0000 (22 15:15 +0200)
tree640bd662dc09c5299ee089b91fecb2f3f8c84555
parenta2f0d1bb3fa1e4cd92e0b71357e02ad5709c1f0d
FIX crash when `bind'ing over existing binding!..

Oh, now that we can redefine macros over i did

  ?0!0[#/var/spool/mail/steffen]? source /home/steffen/.s-mailrc
  Crash NYD listing written to /tmp/s-nail.dat
  Segmentation fault (core dumped)

that was

  s-nail: MACRO 40 bytes <if t && [ "$features" =@ +key-bindings ]>
  s-nail: memreset: freed 2 chunks/8310 bytes
  s-nail: MACRO 36 bytes <bind base $'\e',d mle-snarf-word-fwd>
  Crash NYD listing written to /tmp/s-nail.dat
  Segmentation fault (core dumped)

Uff!  Two occurrences of array accesses did not mask their index --
we carry index and flags in one member --, which didn't seem to
matter that much when i have implemented the stuff, but does
today.
tty.c