aboutsummaryrefslogtreecommitdiff
path: root/src/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/menu.c')
-rw-r--r--src/menu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/menu.c b/src/menu.c
index 1b06b82cd9..eff81ad37f 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -12,6 +12,8 @@
* Code for menus. Used for the GUI and 'wildmenu'.
*/
+#include <string.h>
+
#include "vim.h"
#include "menu.h"
#include "charset.h"
@@ -1180,7 +1182,7 @@ static char_u *popup_mode_name(char_u *name, int idx)
p = vim_strnsave(name, len + 1);
if (p != NULL) {
- mch_memmove(p + 6, p + 5, (size_t)(len - 4));
+ memmove(p + 6, p + 5, (size_t)(len - 4));
p[5] = menu_mode_chars[idx];
}
return p;