Blame SOURCES/vim-covscan.patch

df7669
diff --git a/src/ex_getln.c b/src/ex_getln.c
df7669
index 9fdfac5..6451378 100644
df7669
--- a/src/ex_getln.c
df7669
+++ b/src/ex_getln.c
df7669
@@ -797,6 +797,7 @@ getcmdline(
df7669
 			    redrawcmd();
df7669
 			    goto cmdline_changed;
df7669
 			}
df7669
+			vim_free(p);
df7669
 		    }
df7669
 		}
df7669
 		beep_flush();
df7669
diff --git a/src/memline.c b/src/memline.c
df7669
index 4be1036..366de4c 100644
df7669
--- a/src/memline.c
df7669
+++ b/src/memline.c
df7669
@@ -344,7 +344,7 @@ ml_open(buf_T *buf)
df7669
     b0p->b0_magic_int = (int)B0_MAGIC_INT;
df7669
     b0p->b0_magic_short = (short)B0_MAGIC_SHORT;
df7669
     b0p->b0_magic_char = B0_MAGIC_CHAR;
df7669
-    STRNCPY(b0p->b0_version, "VIM ", 4);
df7669
+    mch_memmove(b0p->b0_version, "VIM ", 4);
df7669
     STRNCPY(b0p->b0_version + 4, Version, 6);
df7669
     long_to_char((long)mfp->mf_page_size, b0p->b0_page_size);
df7669
 
df7669
diff --git a/src/move.c b/src/move.c
df7669
index a560030..2ea3975 100644
df7669
--- a/src/move.c
df7669
+++ b/src/move.c
df7669
@@ -1939,7 +1939,7 @@ scroll_cursor_bot(int min_scroll, int set_topbot)
df7669
 	    scrolled += loff.height;
df7669
 	    if (loff.lnum == curwin->w_botline
df7669
 #ifdef FEAT_DIFF
df7669
-			    && boff.fill == 0
df7669
+			    && loff.fill == 0
df7669
 #endif
df7669
 		    )
df7669
 		scrolled -= curwin->w_empty_rows;
df7669
diff --git a/src/term.c b/src/term.c
df7669
index 9ac824f..89b663a 100644
df7669
--- a/src/term.c
df7669
+++ b/src/term.c
df7669
@@ -1460,7 +1460,7 @@ parse_builtin_tcap(char_u *term)
df7669
 			    if (term_7to8bit(t))
df7669
 			    {
df7669
 				*t = term_7to8bit(t);
df7669
-				STRCPY(t + 1, t + 2);
df7669
+				STRMOVE(t + 1, t + 2);
df7669
 			    }
df7669
 			term_strings[p->bt_entry] = s;
df7669
 			set_term_option_alloced(&term_strings[p->bt_entry]);