diff options
author | schu <schu-github@schulog.org> | 2011-08-03 01:17:31 +0200 |
---|---|---|
committer | schu <schu-github@schulog.org> | 2011-08-03 01:17:31 +0200 |
commit | 5274c31a89ec9075cc74ff189f6264a976c04571 (patch) | |
tree | c1836657c586acb2e01a33df9f56ca2777367d72 /src/signature.c | |
parent | 03d88ed415a09faf161d8a081c18f51826be584a (diff) | |
download | libgit2-5274c31a89ec9075cc74ff189f6264a976c04571.tar.gz |
signature.c: fix off-by-one error
Signed-off-by: schu <schu-github@schulog.org>
Diffstat (limited to 'src/signature.c')
-rw-r--r-- | src/signature.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/signature.c b/src/signature.c index cc55d1dc7..7116db572 100644 --- a/src/signature.c +++ b/src/signature.c @@ -62,7 +62,7 @@ static int process_trimming(const char *input, char **storage, const char *input left = skip_leading_spaces(input, input_end); right = skip_trailing_spaces(input, input_end - 1); - if (right <= left) { + if (right < left) { if (fail_when_empty) return git__throw(GIT_EINVALIDARGS, "Failed to trim. Input is either empty or only contains spaces"); else |