This is an autogenerated patch header for a single-debian-patch file. The
delta against upstream is either kept as a single patch, or maintained
in some VCS, and exported as a single patch instead of more manageable
atomic patches.

--- buthead-1.1.orig/buthead.c
+++ buthead-1.1/buthead.c
@@ -40,7 +40,15 @@ int main(int argc, char **argv)
   }
 
   while ((c = getchar()) != EOF)
-    putchar(c);
+    if (putchar(c) == EOF) {
+      perror("buthead error");
+      exit(1);
+    }
+
+  if (fflush(stdout) == EOF) {
+    perror("buthead error");
+    exit(1);
+  }
 
   return 0;
 }
