Re: fortune(6): fix an infinite loop

2017-06-02 Thread Theo Buehler
On Fri, Jun 02, 2017 at 04:02:02PM +0200, Frederic Cambus wrote: > Hi tech@, > > When invoking fortune with the -l option (to get long dictums only), > the program gets stuck in an infinite loop because fortlen() doesn't > return the fortune length correctly. > > Comments? OK? nice, ok note

fortune(6): fix an infinite loop

2017-06-02 Thread Frederic Cambus
Hi tech@, When invoking fortune with the -l option (to get long dictums only), the program gets stuck in an infinite loop because fortlen() doesn't return the fortune length correctly. Comments? OK? Index: games/fortune/fortune/fortune.c