Made fileLine statically allocated, and simplified htsp_switch_file_extension to use strrchr...