Commits

Anonymous committed d356b5c

updated for version 7.3.835
Problem: "xxd -i" fails on an empty file.
Solution: Do output the closing } for an empty file. (partly by Lawrence
Woodman)

Comments (0)

Files changed (2)

 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    835,
+/**/
     834,
 /**/
     833,
       if (c == EOF && ferror(fp))
 	die(2);
 
-      if (p)
-	if (fputs("\n};\n" + 3 * (fp == stdin), fpo) == EOF)
-	  die(3);
+      if (p && fputs("\n", fpo) == EOF)
+	die(3);
+      if (fputs("};\n" + 3 * (fp == stdin), fpo) == EOF)
+	die(3);
 
       if (fp != stdin)
 	{