Skip to content
Snippets Groups Projects
Commit 0da32f28 authored by Stephen R. van den Berg's avatar Stephen R. van den Berg
Browse files

Stdio.Buffer: Eliminates race condition from read_cstring().

In addition it makes read_cstring():
- Restartable after buffer changes from range_error().
- Call range_error(0) just like sscanf().
- Faster.

The race condition occurred after a pause due to range_error(),
the subsequent io_rewind() at the end could not rewind far enough.
parent 793581e4
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.
Please register or to comment