diff options
| author | Timo Savinen <tjsa@iki.fi> | 2006-10-24 16:42:13 +0000 |
|---|---|---|
| committer | Hadrien Dorio <hadrien.dorio@gmail.com> | 2017-12-16 00:24:06 +0100 |
| commit | 8fefc256fbd2aa171423c4b0493e88c2e2390eb6 (patch) | |
| tree | 278c149e6e527510b9fab279ea47a95cf51c5fa0 /src/buffer.c | |
| parent | 8cd3947e7a7cc09de6299bbe82262bc123476218 (diff) | |
| download | binary-block-editor-8fefc256fbd2aa171423c4b0493e88c2e2390eb6.tar.gz binary-block-editor-8fefc256fbd2aa171423c4b0493e88c2e2390eb6.zip | |
0.2.0
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index c546d5c..3359144 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -185,7 +185,7 @@ read_input_stream() read_count += last_read; } while (in_stream != NULL && read_count < to_be_read); - if (read_count < to_be_read) in_buffer.stream_end = buffer_write_pos + read_count - 1; + if (read_count < to_be_read) in_buffer.stream_end = buffer_write_pos + read_count - (read_count ? 1 : 0); return read_count; } |

