Commit b4cdfcc7 authored by Timothy B. Terriberry's avatar Timothy B. Terriberry
Browse files

Fix a typo in op_mem_read().

We should copy the minimum of the buffer size and the remaining
 bytes, not the maximum.
Fixes #1927.
parent 9d825963
......@@ -110,7 +110,7 @@ static int op_mem_read(void *_stream,unsigned char *_ptr,int _buf_size){
/*Check for EOF.*/
if(pos>=size)return 0;
/*Check for a short read.*/
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment