Date: Thu, 19 Feb 1998 16:56:04 +0100 (CET) From: Arne Woerner <woerner@teshima.heim8.tu-clausthal.de> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: misc/5791: bug in strfile Message-ID: <199802191556.QAA01571@teshima.heim8.tu-clausthal.de>
next in thread | raw e-mail | index | archive | help
>Number: 5791 >Category: misc >Synopsis: bug in strfile >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Feb 19 08:00:01 PST 1998 >Last-Modified: >Originator: Arne Woerner >Organization: GROSS >Release: FreeBSD 2.2.5-RELEASE i386 >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: 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; >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802191556.QAA01571>