From 633205ba788b19f7d2118ea175e3a2c17a6a2295 Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Thu, 19 Jul 2018 21:48:04 +0200 Subject: [PATCH] fix bug #54254 (ppp/utils.c: use lwip_isdigit()) --- src/netif/ppp/utils.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/netif/ppp/utils.c b/src/netif/ppp/utils.c index 008c6337..f1366dae 100644 --- a/src/netif/ppp/utils.c +++ b/src/netif/ppp/utils.c @@ -58,8 +58,6 @@ #endif #endif /* UNUSED */ -#include /* isdigit() */ - #include "netif/ppp/ppp_impl.h" #include "netif/ppp/fsm.h" @@ -180,7 +178,7 @@ int ppp_vslprintf(char *buf, int buflen, const char *fmt, va_list args) { width = va_arg(args, int); c = *++fmt; } else { - while (isdigit(c)) { + while (lwip_isdigit(c)) { width = width * 10 + c - '0'; c = *++fmt; } @@ -192,7 +190,7 @@ int ppp_vslprintf(char *buf, int buflen, const char *fmt, va_list args) { c = *++fmt; } else { prec = 0; - while (isdigit(c)) { + while (lwip_isdigit(c)) { prec = prec * 10 + c - '0'; c = *++fmt; }