Remove incorrect use of ctype.h functions.
As far as I can tell the code should not change behaviour depending on locale in any of these places. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
@ -26,7 +26,6 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "libavutil/mem.h"
|
||||
@ -54,7 +53,7 @@ char *ff_urldecode(const char *url)
|
||||
if (c == '%' && s + 2 < url_len) {
|
||||
char c2 = url[s++];
|
||||
char c3 = url[s++];
|
||||
if (isxdigit(c2) && isxdigit(c3)) {
|
||||
if (av_isxdigit(c2) && av_isxdigit(c3)) {
|
||||
c2 = av_tolower(c2);
|
||||
c3 = av_tolower(c3);
|
||||
|
||||
|
Reference in New Issue
Block a user