Fix incorrect index access
Fix extra declaration
Fix buffer overrun
Minor modification of FileRead_seek