1
0
forked from aniani/vim

updated for version 7.2-250

This commit is contained in:
Bram Moolenaar
2009-09-11 11:26:56 +00:00
parent 1c6136a8a5
commit dc7e00e848
2 changed files with 5 additions and 1 deletions

View File

@@ -635,7 +635,9 @@ STDMETHODIMP CShellExt::QueryContextMenu(HMENU hMenu,
}
// Now concatenate
strncpy(temp, _("Edit with existing Vim - "), BUFSIZE - 1);
strncat(temp, title, BUFSIZE - 1);
temp[BUFSIZE - 1] = '\0';
strncat(temp, title, BUFSIZE - 1 - strlen(temp));
temp[BUFSIZE - 1] = '\0';
InsertMenu(hMenu,
indexMenu++,
MF_STRING|MF_BYPOSITION,