diff --git a/src/cn-encoder.c b/src/cn-encoder.c index d8a4d49..ffaf3e8 100644 --- a/src/cn-encoder.c +++ b/src/cn-encoder.c @@ -35,7 +35,7 @@ typedef struct _write_state ssize_t size; } cn_write_state; -#define ensure_writable(sz) if ((ws->offset<0) || (ws->offset + (sz) >= ws->size)) { \ +#define ensure_writable(sz) if ((ws->offset<0) || (ws->offset + (sz) > ws->size)) { \ ws->offset = -1; \ return; \ }