Skip to content

Commit

Permalink
fixed comments in MimeReader.StepMboxMarker
Browse files Browse the repository at this point in the history
  • Loading branch information
jstedfast committed Dec 20, 2024
1 parent ac8b968 commit 4f040d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MimeKit/AsyncMimeReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async Task StepMboxMarkerAsync (CancellationToken cancellationToken)
var available = await ReadAheadAsync (5, 0, cancellationToken).ConfigureAwait (false);

if (available < 5) {
// failed to find a From line; EOF reached
// failed to find the beginning of the mbox marker; EOF reached
state = MimeParserState.Error;
inputIndex = inputEnd;
return;
Expand Down
4 changes: 2 additions & 2 deletions MimeKit/MimeReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@ unsafe bool StepMboxMarkerStart (byte* inbuf, ref bool midline)
midline = false;
}

while (inptr + 5 < inend) {
while (inptr + 5 <= inend) {
if (IsMboxMarker (inptr)) {
// we have found the start of the mbox marker
return true;
Expand Down Expand Up @@ -1329,7 +1329,7 @@ unsafe void StepMboxMarker (byte* inbuf, CancellationToken cancellationToken)
var available = ReadAhead (5, 0, cancellationToken);

if (available < 5) {
// failed to find a From line; EOF reached
// failed to find the beginning of the mbox marker; EOF reached
state = MimeParserState.Error;
inputIndex = inputEnd;
return;
Expand Down

0 comments on commit 4f040d9

Please sign in to comment.