mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
Use memmove instead of mch_memmove
This commit is contained in:

committed by
Thiago de Arruda

parent
dbc904956a
commit
07dad7acf3
@@ -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;
|
||||
|
Reference in New Issue
Block a user