mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-20 14:19:18 +02:00
fixing bug #61 in string ports > 1024 chars (thanks tizoc)
This commit is contained in:
parent
208819a4e4
commit
ece6500f99
1 changed files with 1 additions and 1 deletions
2
sexp.c
2
sexp.c
|
@ -1014,7 +1014,7 @@ int sstream_read (void *vec, char *dst, int n) {
|
|||
if (pos >= len) return 0;
|
||||
if (n > (len - pos)) n = (len - pos);
|
||||
memcpy(dst, sexp_string_data(sexp_stream_buf(vec))+pos, n);
|
||||
sexp_stream_pos_set(vec, sexp_make_fixnum(n));
|
||||
sexp_stream_pos_set(vec, sexp_make_fixnum(pos + n));
|
||||
return n;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue