summaryrefslogtreecommitdiffstats
path: root/cbuffer.c
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 14:06:24 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 14:06:24 +0000
commita6a7510c0e0fd8c39ea776dcc2c1d16fc6d8a024 (patch)
tree315a4defd12cd0f0e9c22eeafbd19050504c85b3 /cbuffer.c
parentAdding debian version 1.6-3. (diff)
downloadlzlib-a6a7510c0e0fd8c39ea776dcc2c1d16fc6d8a024.tar.xz
lzlib-a6a7510c0e0fd8c39ea776dcc2c1d16fc6d8a024.zip
Merging upstream version 1.7~pre1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'cbuffer.c')
-rw-r--r--cbuffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cbuffer.c b/cbuffer.c
index 651bbdd..a97c08e 100644
--- a/cbuffer.c
+++ b/cbuffer.c
@@ -1,5 +1,5 @@
/* Lzlib - Compression library for the lzip format
- Copyright (C) 2009-2014 Antonio Diaz Diaz.
+ Copyright (C) 2009-2015 Antonio Diaz Diaz.
This library is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -77,7 +77,7 @@ static int Cb_read_data( struct Circular_buffer * const cb,
uint8_t * const out_buffer, const int out_size )
{
int size = 0;
- if( out_size < 0 ) return 0;
+ if( out_size <= 0 ) return 0;
if( cb->get > cb->put )
{
size = min( cb->buffer_size - cb->get, out_size );