Commit 516293ce authored by Jeffrey Lee's avatar Jeffrey Lee

Fix off-by-one error in FSBash

Detail:
  Test/Tester/c/Random - Fix random_path_root() reading off the end of the array when myrand() returns its max value
Admin:
  Tested on BB-xM with high processor vectors


Version 3.64. Retagged as 'FileCore-3_64'
parent eb6c6a2c
......@@ -79,7 +79,7 @@ int random_attributes( void )
static char *random_path_root( void )
{
return path_roots[ myrand() * number_of_paths / 0xfff ];
return path_roots[ myrand() * number_of_paths / 0x1000 ];
}
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment