Skip to content

Commit 2f6271b

Browse files
committed
patch 7.4.1462
Problem: Two more rarily used functions with errors. Solution: Add proper argument types. (Dominique Pelle)
1 parent a86f14a commit 2f6271b

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/misc2.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1729,13 +1729,14 @@ vim_memcmp(void *b1, void *b2, size_t len)
17291729
}
17301730
#endif
17311731

1732+
/* skipped when generating prototypes, the prototype is in vim.h */
17321733
#ifdef VIM_MEMMOVE
17331734
/*
17341735
* Version of memmove() that handles overlapping source and destination.
17351736
* For systems that don't have a function that is guaranteed to do that (SYSV).
17361737
*/
17371738
void
1738-
mch_memmove(void *src_arg, *dst_arg, size_t len)
1739+
mch_memmove(void *src_arg, void *dst_arg, size_t len)
17391740
{
17401741
/*
17411742
* A void doesn't have a size, we use char pointers.

src/termlib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ tgetent(
140140
}
141141

142142
static int
143-
getent(char *tbuf, *term, FILE *termcap, int buflen)
143+
getent(char *tbuf, char *term, FILE *termcap, int buflen)
144144
{
145145
char *tptr;
146146
int tlen = strlen(term);

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,8 @@ static char *(features[]) =
743743

744744
static int included_patches[] =
745745
{ /* Add new patch number below this line */
746+
/**/
747+
1462,
746748
/**/
747749
1461,
748750
/**/

0 commit comments

Comments
 (0)