Commit be0acbf5 be0acbf50cdf76521a549a8495052c9ab88ed553 by Sergey Poznyakoff

Bugfix

* mimeview/mimetypes.y (compare_bytes): Fix improper read size
1 parent 383272e0
......@@ -523,7 +523,7 @@ compare_bytes (union argument *args, void *sample, void *buf, size_t size)
return 0;
}
rc = mu_stream_read (mimeview_stream, buf, sizeof (buf), &n);
rc = mu_stream_read (mimeview_stream, buf, size, &n);
if (rc)
{
mu_diag_funcall (MU_DIAG_ERROR, "mu_stream_read", NULL, rc);
......