Re: fold -b1 segmentation fault

2010-10-22 Thread Bret S. Lambert
On Thu, Oct 21, 2010 at 05:57:24PM +0100, Jason McIntyre wrote: > in case anyone's interested, and as reported in a recent freebsd pr: > > $ fold -b1 > Segmentation fault (core dumped) > > no fix is provided. > > jmc > > >Number: 1515

Re: fold -b1 segmentation fault

2010-10-21 Thread Matthias Kilian
On Thu, Oct 21, 2010 at 05:57:24PM +0100, Jason McIntyre wrote: > in case anyone's interested, and as reported in a recent freebsd pr: > > $ fold -b1 > Segmentation fault (core dumped) > > no fix is provided. Holy ugliness... Here are two diffs, pick your c

Re: fold -b1 segmentation fault

2010-10-21 Thread Chris Palmer
> >Fix: > I don't really see what the author is intending to do in that case > statement where it breaks. Agreed. Handing arguments for -w is properly done in the 'w' case with optarg. Commenting out the digit cases gives the desired result: strawberry:/usr/src/usr.bin/fold ; ./fold -b1 usage: fo

fold -b1 segmentation fault

2010-10-21 Thread Jason McIntyre
in case anyone's interested, and as reported in a recent freebsd pr: $ fold -b1 Segmentation fault (core dumped) no fix is provided. jmc >Number: 151592 >Category: misc >Synopsis: 'fold' segfaults on argument processing >C