ctype.h macros take int as arguments, but expect arguments to be in
unsigned char's range. Even though it probably works, this isn't
correct on systems that have a signed char type. Cast explicitly.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit
52f02b47685bc823c4c75560175a27aab0bd6709)
*/
for (i = 0; i < strlen (ifp->name); i++)
{
- if (isdigit(ifp->name[i]))
+ if (isdigit((unsigned char)ifp->name[i]))
{
if (start < 0)
{
if (argc > 1)
{
- if ((isdigit(argv[1][0])) || strncmp (argv[1], "i", 1) == 0)
+ if ((isdigit((unsigned char)argv[1][0]))
+ || strncmp (argv[1], "i", 1) == 0)
{
if ( strncmp (argv[1], "i", 1) == 0)
rp.AdvValidLifetime = UINT32_MAX;