Permalink
Browse files

Fix libTDS t0004 test

assert test was wrong, length to write can be equal to buffer length.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  • Loading branch information...
1 parent 03b8a23 commit 20998c1075c1d2b54ce93e47c0b86f735e71ee6e @freddy77 freddy77 committed Mar 1, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/tds/stream.c
View
@@ -205,7 +205,7 @@ static int
tds_dataout_stream_write(TDSOUTSTREAM *stream, size_t len)
{
TDSDATAOUTSTREAM *s = (TDSDATAOUTSTREAM *) stream;
- assert(len < sizeof(s->real_buf));
+ assert(len <= sizeof(s->real_buf));
assert(s->stream.buffer == s->real_buf);
tds_put_n(s->tds, s->real_buf, len);
s->written += len;

0 comments on commit 20998c1

Please sign in to comment.