urlencode: fix null byte hexdigit() bug

This commit is contained in:
cinap_lenrek 2012-10-05 23:30:05 +02:00
parent 9ac9a135c8
commit 310afb88ef

View file

@ -14,7 +14,7 @@ hexdigit(int c)
{
char *p;
if(c >= 0){
if(c > 0){
if((p = strchr(Hex, c)) != 0)
return p - Hex;
if((p = strchr(hex, c)) != 0)