From woerner@teshima.heim8.tu-clausthal.de  Thu Feb 19 07:56:49 1998
Received: from teshima.heim8.tu-clausthal.de (teshima.heim8.tu-clausthal.de [139.174.248.52])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA06603
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 19 Feb 1998 07:56:35 -0800 (PST)
          (envelope-from woerner@teshima.heim8.tu-clausthal.de)
Received: (from woerner@localhost)
	by teshima.heim8.tu-clausthal.de (8.8.7/8.8.7) id QAA01571;
	Thu, 19 Feb 1998 16:56:04 +0100 (CET)
	(envelope-from woerner)
Message-Id: <199802191556.QAA01571@teshima.heim8.tu-clausthal.de>
Date: Thu, 19 Feb 1998 16:56:04 +0100 (CET)
From: Arne Woerner <woerner@teshima.heim8.tu-clausthal.de>
Reply-To: arne.woerner@tu-clausthal.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: bug in strfile
X-Send-Pr-Version: 3.2

>Number:         5791
>Category:       misc
>Synopsis:       bug in strfile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    steve
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 19 08:00:01 PST 1998
>Closed-Date:    Thu Feb 19 16:50:34 PST 1998
>Last-Modified:  Thu Feb 19 16:51:35 PST 1998
>Originator:     Arne Woerner
>Release:        FreeBSD 2.2.5-RELEASE i386
>Organization:
GROSS
>Environment:

	does not matter in this case

>Description:

	the parameters -o and -r of the program
		/usr/games/strfile
	do not do anything.

>How-To-Repeat:

	try
		/usr/games/strfile -r bla
	this results always in the same content of bla.dat.

>Fix:
	
	In /usr/src/games/fortune/strfile/strfile.c substitute the line 435
		cnt = Tbl.str_numstr;
	by
		cnt = Num_pts-1; 
	and subtitute the lines 342 and 343
		qsort((char *) Firstch, (int) Tbl.str_numstr, sizeof *Firstch, cmp_str);
		i = Tbl.str_numstr;
	by
		qsort((char *) Firstch, (int) (Num_pts-1), sizeof *Firstch, cmp_str);
		i = Num_pts-1;

>Release-Note:
>Audit-Trail:

From: Arne Woerner <arne.woerner@tu-clausthal.de>
To: freebsd-gnats-submit@freebsd.org, woerner@teshima.heim8.tu-clausthal.de
Cc:  Subject: Re: misc/5791: bug in strfile
Date: Thu, 19 Feb 1998 18:33:24 +0100

 i meant the lines in the source file
     /usr/src/games/fortune/strfile/strfile.c
 
 and although i gave a Reply-To: e-mail-address the
 wrong e-mail-adress is noted in the section Originator.
 or i misstyped something?
 the e-mail-adress
     woerner@teshima
 is not good. but the e-mail-adress
     arne.woerner@tu-clausthal.de
 is ok.
 
 -arne
 
 
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Thu Feb 19 16:50:34 PST 1998 
State-Changed-Why:  
Fixed in both -current and -stable. 
>Unformatted:
