diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-04-10 02:22:11 +0400 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-04-10 02:22:11 +0400 |
commit | c6e65acae63bd9b251140184679ab4ea0ec5c1a9 (patch) | |
tree | 42e304af6ea9be7f4f35e3beca314fccc9fddd27 /src/errors.c | |
parent | b918ae40d1dc5116d7631ef822d7b5b39a622c81 (diff) |
Properly check `strtol` for errors
We are now using a custom `strtol` implementation to make sure we're not
missing any overflow errors.
Diffstat (limited to 'src/errors.c')
-rw-r--r-- | src/errors.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/errors.c b/src/errors.c index 3c0e8eb1f..c3a495cc9 100644 --- a/src/errors.c +++ b/src/errors.c @@ -29,7 +29,9 @@ static struct { {GIT_EREVWALKOVER, "The revision walker is empty; there are no more commits left to iterate"}, {GIT_EINVALIDREFSTATE, "The state of the reference is not valid"}, {GIT_ENOTIMPLEMENTED, "This feature has not been implemented yet"}, - {GIT_EEXISTS, "A reference with this name already exists"} + {GIT_EEXISTS, "A reference with this name already exists"}, + {GIT_EOVERFLOW, "The given integer literal is too large to be parsed"}, + {GIT_ENOTNUM, "The given literal is not a valid number"}, }; const char *git_strerror(int num) |