mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-06-14 14:55:11 +02:00
partial writes are successful
This commit is contained in:
parent
1956e38ba0
commit
3e8872dc48
1 changed files with 3 additions and 1 deletions
4
sexp.c
4
sexp.c
|
@ -1363,8 +1363,10 @@ int sexp_buffered_flush (sexp ctx, sexp p, int forcep) {
|
|||
if (res > 0) {
|
||||
memmove(sexp_port_buf(p), sexp_port_buf(p) + res, off - res);
|
||||
sexp_port_offset(p) = off - res;
|
||||
res = 0;
|
||||
} else {
|
||||
res = -1;
|
||||
}
|
||||
res = -1;
|
||||
} else {
|
||||
sexp_port_offset(p) = 0;
|
||||
res = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue