Blame SOURCES/vim-covscan.patch

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