Slight modification to cgi_unescape_special_chars() to ensure termination of new string even if zero-length. Also, freeing any trailing bytes from new before returning.
Slight modification to cgi_unescape_special_chars() to ensure termination of
new string even if zero-length. Also, freeing any trailing bytes from new
before returning.

rafaelsteil/libcgi,LeSpocky/libcgi,LeSpocky/libcgi,rafaelsteil/libcgi