Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 buthead (1.1-5) unstable; urgency=medium
 .
   * bump standards version
   * bump debhelper version
   * use secure URLs
   * swizzle packaging repo to salsa
   * priority optional, per standards
   * harden
Author: Barak A. Pearlmutter <bap@debian.org>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2018-07-31

--- 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;
 }
