mirror of
https://github.com/tstack/lnav
synced 2024-11-17 15:29:40 +00:00
use isdigit
This commit is contained in:
parent
0537e13e85
commit
e5cb6ff251
@ -36,7 +36,7 @@
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <ctype.h>
|
||||
|
||||
|
||||
#include <sqlite3.h>
|
||||
|
||||
#include "auto_fd.hh"
|
||||
@ -273,7 +273,7 @@ const char *date_time_scanner::scan(const char *time_dest,
|
||||
if (retval[lpc] == ' ' &&
|
||||
sscanf(&retval[lpc], "%d", &tm_out->tm_year) == 1) {
|
||||
lpc += 1;
|
||||
for (; retval[lpc] && isnumber(retval[lpc]); lpc++) {
|
||||
for (; retval[lpc] && isdigit(retval[lpc]); lpc++) {
|
||||
|
||||
}
|
||||
retval = &retval[lpc];
|
||||
|
Loading…
Reference in New Issue
Block a user