Bugfix
* mimeview/mimetypes.y (compare_bytes): Fix improper read size
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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); | ... | ... |
-
Please register or sign in to post a comment