mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-07-01 15:20:34 +02:00
put-bytevector: Allow start == bytevector length.
* libguile/r6rs-ports.c (scm_put_bytevector): When three arguments (port bv start) are provided, allow start to be equal to the length of the bytevector, resulting in a zero-length write.
This commit is contained in:
parent
73d9d18488
commit
72d80a1ea3
1 changed files with 1 additions and 1 deletions
|
@ -800,7 +800,7 @@ SCM_DEFINE (scm_put_bytevector, "put-bytevector", 2, 2, 0,
|
|||
}
|
||||
else
|
||||
{
|
||||
if (SCM_UNLIKELY (c_start >= c_len))
|
||||
if (SCM_UNLIKELY (c_start > c_len))
|
||||
scm_out_of_range (FUNC_NAME, start);
|
||||
else
|
||||
c_count = c_len - c_start;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue