diff options
Diffstat (limited to 'apply.c')
| -rw-r--r-- | apply.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1423,7 +1423,10 @@ static int parse_num(const char *line, unsigned long *p) if (!isdigit(*line)) return 0; + errno = 0; *p = strtoul(line, &ptr, 10); + if (errno) + return 0; return ptr - line; } |
