mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-16 16:50:21 +02:00
Fix test in 'fport_write'.
Reported by Doug Evans <xdje42@gmail.com> at <http://lists.gnu.org/archive/html/guile-devel/2015-03/msg00023.html>. * libguile/fports.c (fport_write): Change SIZE to REMAINING in condition. This doesn't have any observable effect.
This commit is contained in:
parent
d574d96f87
commit
6001fa35c6
1 changed files with 1 additions and 1 deletions
|
@ -781,7 +781,7 @@ fport_write (SCM port, const void *data, size_t size)
|
|||
const void *ptr = ((const char *) data) + space;
|
||||
size_t remaining = size - space;
|
||||
|
||||
if (size >= pt->write_buf_size)
|
||||
if (remaining >= pt->write_buf_size)
|
||||
{
|
||||
if (full_write (SCM_FPORT_FDES (port), ptr, remaining)
|
||||
< remaining)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue