projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge pull request #2208 from martinbooth/dataannotation_strings_from_corefx_without_resx
[mono.git]
/
support
/
zlib-helper.c
diff --git
a/support/zlib-helper.c
b/support/zlib-helper.c
index 38696260a092fb4b509f7eabc7f9fef96032b2b8..dbfd1c7e24a27e7dd67283e6c1df7401b17d6100 100644
(file)
--- a/
support/zlib-helper.c
+++ b/
support/zlib-helper.c
@@
-187,7
+187,7
@@
ReadZStream (ZStream *stream, guchar *buffer, gint length)
stream->eof = TRUE;
}
zs->next_in = stream->buffer;
- zs->avail_in = n;
+ zs->avail_in = n
< 0 ? 0 : n
;
}
if (zs->avail_in == 0 && zs->total_in == 0)