summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f45a7fb)
If atoi(3) returned zero, either because `0' was given or the number
could not be parsed, then the error message dereferenced an invalid
pointer. Found when trying to increase coverage with check_exit.
number = -1;
else if (!(number = atoi(*argp)))
number = -1;
else if (!(number = atoi(*argp)))
- adios (NULL, "missing argument to %s", argp[-2]);
+ adios (NULL, "missing argument to %s", argp[-1]);