Navigation Menu

Skip to content

Commit

Permalink
Fix read buffer size for large chunks
Browse files Browse the repository at this point in the history
Oops, copy paste error slipped through ...
  • Loading branch information
spiiroin committed Nov 15, 2012
1 parent 4db2bbf commit 0d13d65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mce-io.c
Expand Up @@ -799,7 +799,7 @@ static gboolean io_chunk_cb(GIOChannel *source,
if( iomon->chunk_size < bytes_want ) {
bytes_want -= bytes_want % iomon->chunk_size;
} else {
bytes_want -= iomon->chunk_size;
bytes_want = iomon->chunk_size;
}

buffer = g_malloc(bytes_want);
Expand Down

0 comments on commit 0d13d65

Please sign in to comment.