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) ...@@ -523,7 +523,7 @@ compare_bytes (union argument *args, void *sample, void *buf, size_t size)
523 return 0; 523 return 0;
524 } 524 }
525 525
526 rc = mu_stream_read (mimeview_stream, buf, sizeof (buf), &n); 526 rc = mu_stream_read (mimeview_stream, buf, size, &n);
527 if (rc) 527 if (rc)
528 { 528 {
529 mu_diag_funcall (MU_DIAG_ERROR, "mu_stream_read", NULL, rc); 529 mu_diag_funcall (MU_DIAG_ERROR, "mu_stream_read", NULL, rc);
......