Be sure to set the value of Tbl.str_numstr before any call to

do_order or randomize so that they actually work.

PR:		5791
This commit is contained in:
Steve Price 1998-02-20 00:47:49 +00:00
parent 92f57d003c
commit 6b04f41b59
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=33633

View File

@ -207,6 +207,7 @@ char **av;
*/
(void) fclose(inf);
Tbl.str_numstr = Num_pts - 1;
if (Oflag)
do_order();
@ -230,7 +231,7 @@ char **av;
rewind(outf);
Tbl.str_version = htonl(Tbl.str_version);
Tbl.str_numstr = htonl(Num_pts - 1);
Tbl.str_numstr = htonl(Tbl.str_numstr);
Tbl.str_longlen = htonl(Tbl.str_longlen);
Tbl.str_shortlen = htonl(Tbl.str_shortlen);
Tbl.str_flags = htonl(Tbl.str_flags);