summaryrefslogtreecommitdiff
path: root/src/errors.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-04-09 15:22:11 -0700
committerVicent Marti <tanoku@gmail.com>2011-04-09 15:22:11 -0700
commitc6e65acae63bd9b251140184679ab4ea0ec5c1a9 (patch)
tree42e304af6ea9be7f4f35e3beca314fccc9fddd27 /src/errors.c
parentb918ae40d1dc5116d7631ef822d7b5b39a622c81 (diff)
downloadlibgit2-c6e65acae63bd9b251140184679ab4ea0ec5c1a9.tar.gz
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.c4
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)