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
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
> >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
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