In load_one_actions_file(), don't limit the actions_buf to BUFFER_SIZE bytes.