diff options
Diffstat (limited to 'src/menu.c')
-rw-r--r-- | src/menu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/menu.c b/src/menu.c index b01792594b..8a69edd1ab 100644 --- a/src/menu.c +++ b/src/menu.c @@ -1810,7 +1810,7 @@ menu_text(char_u *str, int *mnemonic, char_u **actext) { if (actext != NULL) *actext = vim_strsave(p + 1); - text = vim_strnsave(str, (int)(p - str)); + text = vim_strnsave(str, p - str); } else text = vim_strsave(str); @@ -2716,7 +2716,7 @@ ex_menutranslate(exarg_T *eap UNUSED) if (from != NULL) { from_noamp = menu_text(from, NULL, NULL); - to = vim_strnsave(to, (int)(arg - to)); + to = vim_strnsave(to, arg - to); if (from_noamp != NULL && to != NULL) { menu_translate_tab_and_shift(from); |