[SCM] Vim packaging branch, master, updated. debian/7.2.010-1-7-g2cd74df
James Vega
jamessan at debian.org
Fri Oct 3 17:35:03 UTC 2008
The following commit has been merged in the master branch:
commit dc1831a64a82c715b97325b1800788699021110d
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 91c305e..f7feac6 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -5518,9 +5518,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