>> Huy Le wrote:
>> > This gives me a seg fault on linux with nmh-1.0.2:
>> > scan -format '1' +inbox
>On Sun, 09 Apr 2000 17:28:09 +1000, Simon Burge wrote:
>> Have you tried nmh-1.0.3? Works ok for me on Ultrix 4.5.
Huy Le wrote:
>Yeah, it fails with nmh-1.0.3 on linux too.
>Turns out it seg faults with any string with length of only one character.
>If more than one character, all is good in the hood.
Found it. A single-character format would cause a single item
list/array to be created in fmt_compile. The function currently tests
array+1 looking for an empty node. In this case, that would wind up
pointing into illegal memory. The diff is here:
http://mhost.com/cgi-bin/cvsweb/nmh/sbr/fmt_compile.c?r1=1.2&r2=1.3
or you can just grab the latest sources from CVS.
-Doug