Skip to content
Snippets Groups Projects
Commit ab2362e2 authored by Josh Holmer's avatar Josh Holmer Committed by Thomas Daede
Browse files

Use `write_all` instead of `write` to handle buffers

`write` may not process the entire buffer, so if using it, it is
recommended to handle the return value (number of bytes written), or
strange runtime errors may occur. Since we are clearing the buffers
immediately after, it seems the desired behavior is to write the entire
buffer, for which `write_all` will guarantee correct behavior.
parent f8aa8dd3
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment