[SCM] Vim packaging branch, maint/lenny, updated. debian/7.1.314-3-51-g209709e
James Vega
jamessan at debian.org
Sun Oct 12 06:29:42 UTC 2008
The following commit has been merged in the maint/lenny branch:
commit 805d0695937ec8c634a3d07393df2e7e565370b4
Author: James Vega <jamessan at debian.org>
Date: Fri Oct 3 09:46:01 2008 -0400
strncpy the string before passing it to vim_strsave_shellescape
Signed-off-by: James Vega <jamessan at debian.org>
diff --git a/src/normal.c b/src/normal.c
index b22442b..af2eb72 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -5483,9 +5483,11 @@ nv_ident(cap)
*/
if (cmdchar == 'K' && !kp_help)
{
+ /* Use only the chars in the identifier, instead of the whole line */
+ char_u s[n+1];
+ vim_strncpy(s, ptr, n);
/* Escape the argument properly for a shell command */
- ptr[n] = NUL;
- p = vim_strsave_shellescape(ptr, TRUE);
+ p = vim_strsave_shellescape(s, TRUE);
if (p == NULL)
{
vim_free(buf);
--
Vim packaging
More information about the pkg-vim-maintainers
mailing list