Skip to content

Commit

Permalink
Update Ref7_evbuffer.txt
Browse files Browse the repository at this point in the history
Fix bug of "Adding data to an evbuffer directly" example in R7.
  • Loading branch information
AngieJC authored and azat committed Oct 30, 2023
1 parent efbfca1 commit f8fa5f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Ref7_evbuffer.txt
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,7 @@ for (i=0; i<n && n_to_add > 0; ++i) {
/* Set iov_len to the number of bytes we actually wrote, so we
don't commit too much. */
v[i].iov_len = len;
n_to_add -= len;
}

/* We commit the space here. Note that we give it 'i' (the number of
Expand Down

0 comments on commit f8fa5f1

Please sign in to comment.