Replace sprintf with snprintf, to fix CVE-2013-1961.
Rewrite t2p_process_jpeg_strip(), to fix CVE-2013-1960.