diff options
-rw-r--r-- | libpipe/pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpipe/pipe.c b/libpipe/pipe.c index 4e52ac04..7f36e5f8 100644 --- a/libpipe/pipe.c +++ b/libpipe/pipe.c @@ -259,7 +259,7 @@ pipe_send (struct pipe *pipe, int noblock, void *source, if (noblock) { size_t left = pipe->write_limit - pipe_readable (pipe, 1); - if (left > data_len) + if (left < data_len) if (data_len <= pipe->write_atomic) return EWOULDBLOCK; else |