updated for version 7.4.477
Problem:    When using ":%diffput" and the other file is empty an extra empty
            line remains.
Solution:   Set the buf_empty flag.
diff --git a/src/diff.c b/src/diff.c
index 98b791a..d324f99 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -2325,7 +2325,7 @@
 		    end_skip = 0;
 	    }
 
-	    buf_empty = FALSE;
+	    buf_empty = bufempty();
 	    added = 0;
 	    for (i = 0; i < count; ++i)
 	    {
diff --git a/src/version.c b/src/version.c
index c4f560b..d233c24 100644
--- a/src/version.c
+++ b/src/version.c
@@ -742,6 +742,8 @@
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    477,
+/**/
     476,
 /**/
     475,