[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [leafnode-list] Riddle
On Tue, Nov 28, 2000 at 05:12:15PM +0100, Cornelius Krasel wrote:
> The following piece of code from texpire.c (around line 448) segfaults
> in the sprintf line:
>
> /* check whether file entries are legal */
> /* save threads if an article in the thread is not killed */
> for ( current = (acount-1); current >= 0; current-- ) {
> sprintf( artfile, "%lu", articles[current].artno );
> ...
> }
unsigned long first, last, art, acount, current;
^^^^^^^^
current >= 0 is always true. We had the same in helpfindgroup().
That is the reason I wrote the code like it is in 2.0b5...
Regards,
Jo:rg
--
Fortune cookie of the day:
Some rise by sin and some by virtue fall.
--
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list