-/* $OpenBSD: fetch.c,v 1.203 2021/03/13 11:36:31 sthen Exp $ */
+/* $OpenBSD: fetch.c,v 1.204 2021/03/29 03:34:52 deraadt Exp $ */
/* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */
/*-
* hexadecimal digits.
*/
strchr(unsafe_chars, *c) != NULL ||
- (*c == '%' && (!isxdigit(*++c) || !isxdigit(*++c))));
+ (*c == '%' && (!isxdigit(c[1]) || !isxdigit(c[2]))));
}
/*
-/* $OpenBSD: http.c,v 1.9 2021/03/25 12:18:45 claudio Exp $ */
+/* $OpenBSD: http.c,v 1.10 2021/03/29 03:34:52 deraadt Exp $ */
/*
* Copyright (c) 2020 Nils Fisher <nils_fisher@hotmail.com>
* Copyright (c) 2020 Claudio Jeker <claudio@openbsd.com>
* hexadecimal digits.
*/
strchr(unsafe_chars, *c) != NULL ||
- (*c == '%' && (!isxdigit(*++c) || !isxdigit(*++c))));
+ (*c == '%' && (!isxdigit(c[1]) || !isxdigit(c[2]))));
}
/*