commit | dc7e00e848573c792da9c63b1e4da71989771f5d | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Sep 11 11:26:56 2009 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Sep 11 11:26:56 2009 +0000 |
tree | bab2ccd14c99c0a09f3c628a21f6f1daed699d46 | |
parent | 1c6136a8a5df97e57d8fbb79ea3658c5ecd0cdcd [diff] [blame] |
updated for version 7.2-250
diff --git a/src/GvimExt/gvimext.cpp b/src/GvimExt/gvimext.cpp index d317e2f..71d180e 100644 --- a/src/GvimExt/gvimext.cpp +++ b/src/GvimExt/gvimext.cpp
@@ -635,7 +635,9 @@ } // 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,