mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-15 23:05:49 +01:00
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:
parent
92f57d003c
commit
6b04f41b59
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=33633
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user