Skip to content
Snippets Groups Projects
Commit 53eb37e9 authored by Bram Moolenaar's avatar Bram Moolenaar
Browse files

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)
parent 886ed691
No related branches found
Tags v7.3.835
No related merge requests found
......@@ -728,6 +728,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
835,
/**/
834,
/**/
......
......@@ -729,9 +729,10 @@ main(argc, argv)
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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment