urlencode: fix null byte hexdigit() bug
This commit is contained in:
parent
9ac9a135c8
commit
310afb88ef
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ hexdigit(int c)
|
||||||
{
|
{
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
if(c >= 0){
|
if(c > 0){
|
||||||
if((p = strchr(Hex, c)) != 0)
|
if((p = strchr(Hex, c)) != 0)
|
||||||
return p - Hex;
|
return p - Hex;
|
||||||
if((p = strchr(hex, c)) != 0)
|
if((p = strchr(hex, c)) != 0)
|
||||||
|
|
Loading…
Reference in a new issue