diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-06-01 09:54:08 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-06-01 09:54:08 +0300 |
commit | be0acbf50cdf76521a549a8495052c9ab88ed553 (patch) | |
tree | 012e6e5a175d21c16264f22273743391ce7e68c5 | |
parent | 383272e0d513559fbda73ebc9a485718e4184018 (diff) | |
download | mailutils-be0acbf50cdf76521a549a8495052c9ab88ed553.tar.gz mailutils-be0acbf50cdf76521a549a8495052c9ab88ed553.tar.bz2 |
Bugfix
* mimeview/mimetypes.y (compare_bytes): Fix improper read size
-rw-r--r-- | mimeview/mimetypes.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mimeview/mimetypes.y b/mimeview/mimetypes.y index dffb827b2..051aa9967 100644 --- a/mimeview/mimetypes.y +++ b/mimeview/mimetypes.y @@ -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); |