Skip to content

Commit

Permalink
avstring: Fix isxdigit to not accept non-hex characters
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Storsjö <[email protected]>
  • Loading branch information
mstorsjo committed Mar 7, 2013
1 parent 870add0 commit 4be368b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavutil/avstring.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ int av_isspace(int c)
int av_isxdigit(int c)
{
c = av_tolower(c);
return av_isdigit(c) || (c >= 'a' && c <= 'z');
return av_isdigit(c) || (c >= 'a' && c <= 'f');
}

#ifdef TEST
Expand Down

0 comments on commit 4be368b

Please sign in to comment.