diff options
author | Thomas Wolf <twolf@apache.org> | 2024-02-01 19:24:15 +0100 |
---|---|---|
committer | Thomas Wolf <twolf@apache.org> | 2024-02-01 20:26:35 +0100 |
commit | 5afb92aadd2599b8209739df6fc8a95b8d7adadc (patch) | |
tree | 777f641c717336375521d1aa739e4a14bb2ebaff /org.eclipse.jgit | |
parent | 5eff1dd4c7497aab41a7db6b5ab6360233f0cd32 (diff) | |
download | jgit-5afb92aadd2599b8209739df6fc8a95b8d7adadc.tar.gz jgit-5afb92aadd2599b8209739df6fc8a95b8d7adadc.zip |
RawParseUtils.nextLfSkippingSplitLines: fulfil contract as stated
If there is no newline after the last header, the method is supposed to
return the buffer length, but it returned buffer.length - 1.
Change-Id: I9225d6a35a002244c246bc8781ceaf4369fb9a60
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/util/RawParseUtils.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/RawParseUtils.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/RawParseUtils.java index d2ddf2a345..46d0bc85ff 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/util/RawParseUtils.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/RawParseUtils.java @@ -550,7 +550,7 @@ public final class RawParseUtils { return ptr - 1; } } - return ptr - 1; + return ptr; } /** |