X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/146835943204559707b5461859837cb51fd3485a..ca5ae3e652ed0fb43efaabd697162fd1c28d09ba:/sbr/mime_type.c diff --git a/sbr/mime_type.c b/sbr/mime_type.c index be791096..673642d5 100644 --- a/sbr/mime_type.c +++ b/sbr/mime_type.c @@ -91,7 +91,7 @@ mime_type(const char *file_name) { } while ((c = getc(fp)) != EOF) { - if (! isascii(c)) { + if (! isascii(c) || c == 0) { binary = 1; break; }