bspatch: Make sure data is null terminated
str: Make the find_str() public
upgrade: Add support for partial upgrade of files with '# BEGIN SHOWTIME CONFIG' markers