]> diplodocus.org Git - nmh/blobdiff - sbr/mime_type.c
Removed "If this draft originated on the local host, then" phrase
[nmh] / sbr / mime_type.c
index be79109..06a6156 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;
                }
@@ -128,7 +128,6 @@ get_file_info(const char *proc, const char *file_name) {
         }
     }
 
-    cmd = concat(proc, " ", quotec, file_name, quotec, NULL);
     if ((cmd = concat(proc, " ", quotec, file_name, quotec, NULL))) {
         FILE *fp;