aboutsummaryrefslogtreecommitdiff
path: root/src/menu.c
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-03-26 02:51:44 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-26 16:28:13 -0300
commit07dad7acf3d49b3136c5aad2c9fe05abb9aaf032 (patch)
tree97ab0057d5c3cf17d2a2e90862c22432dd11c674 /src/menu.c
parentdbc904956a17e6bec1ddeba9330b639167dbb882 (diff)
downloadrneovim-07dad7acf3d49b3136c5aad2c9fe05abb9aaf032.tar.gz
rneovim-07dad7acf3d49b3136c5aad2c9fe05abb9aaf032.tar.bz2
rneovim-07dad7acf3d49b3136c5aad2c9fe05abb9aaf032.zip
Use memmove instead of mch_memmove
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;