mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-02-05 06:39:52 +00:00
fix bug #54254 (ppp/utils.c: use lwip_isdigit())
This commit is contained in:
parent
eeb2218b3d
commit
633205ba78
@ -58,8 +58,6 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif /* UNUSED */
|
#endif /* UNUSED */
|
||||||
|
|
||||||
#include <ctype.h> /* isdigit() */
|
|
||||||
|
|
||||||
#include "netif/ppp/ppp_impl.h"
|
#include "netif/ppp/ppp_impl.h"
|
||||||
|
|
||||||
#include "netif/ppp/fsm.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);
|
width = va_arg(args, int);
|
||||||
c = *++fmt;
|
c = *++fmt;
|
||||||
} else {
|
} else {
|
||||||
while (isdigit(c)) {
|
while (lwip_isdigit(c)) {
|
||||||
width = width * 10 + c - '0';
|
width = width * 10 + c - '0';
|
||||||
c = *++fmt;
|
c = *++fmt;
|
||||||
}
|
}
|
||||||
@ -192,7 +190,7 @@ int ppp_vslprintf(char *buf, int buflen, const char *fmt, va_list args) {
|
|||||||
c = *++fmt;
|
c = *++fmt;
|
||||||
} else {
|
} else {
|
||||||
prec = 0;
|
prec = 0;
|
||||||
while (isdigit(c)) {
|
while (lwip_isdigit(c)) {
|
||||||
prec = prec * 10 + c - '0';
|
prec = prec * 10 + c - '0';
|
||||||
c = *++fmt;
|
c = *++fmt;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user