]> diplodocus.org Git - nmh/blobdiff - sbr/mime_type.c
Test to make sure inc works properly with a POP server that has
[nmh] / sbr / mime_type.c
index be79109..673642d 100644 (file)
@@ -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;
                }