Problem: Passing the file name to open in VisVim doesn't work.
Solution: Adjust the index and check for end of buffer. (Jiri Sedlak)
if (g_bNewTabs)
{
sprintf(VimCmd, ":tab drop ");
- s = VimCmd + 11;
+ s = VimCmd + 10;
}
else
{
s = VimCmd + 6;
}
sprintf(FileNameTmp, "%S", (char *)FileName);
- for (p = FileNameTmp; *p != '\0' && s < FileNameTmp + MAX_OLE_STR - 4;
- ++p)
+ for (p = FileNameTmp; *p != '\0' && s < VimCmd + MAX_OLE_STR - 4; ++p)
if (*p == '\\')
*s++ = '/';
else
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 278,
/**/
277,
/**/