|
Karsten Hopp |
edb16f |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
edb16f |
Subject: Patch 7.4.451
|
|
Karsten Hopp |
edb16f |
Fcc: outbox
|
|
Karsten Hopp |
edb16f |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
edb16f |
Mime-Version: 1.0
|
|
Karsten Hopp |
edb16f |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
edb16f |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
edb16f |
------------
|
|
Karsten Hopp |
edb16f |
|
|
Karsten Hopp |
edb16f |
Patch 7.4.451
|
|
Karsten Hopp |
edb16f |
Problem: Calling system() with empty input gives an error for writing the
|
|
Karsten Hopp |
edb16f |
temp file.
|
|
Karsten Hopp |
edb16f |
Solution: Do not try writing if the string length is zero. (Olaf Dabrunz)
|
|
Karsten Hopp |
edb16f |
Files: src/eval.c
|
|
Karsten Hopp |
edb16f |
|
|
Karsten Hopp |
edb16f |
|
|
Karsten Hopp |
edb16f |
*** ../vim-7.4.450/src/eval.c 2014-09-19 14:26:29.654405000 +0200
|
|
Karsten Hopp |
edb16f |
--- src/eval.c 2014-09-19 20:23:57.354451850 +0200
|
|
Karsten Hopp |
edb16f |
***************
|
|
Karsten Hopp |
edb16f |
*** 18638,18650 ****
|
|
Karsten Hopp |
edb16f |
}
|
|
Karsten Hopp |
edb16f |
else
|
|
Karsten Hopp |
edb16f |
{
|
|
Karsten Hopp |
edb16f |
p = get_tv_string_buf_chk(&argvars[1], buf);
|
|
Karsten Hopp |
edb16f |
if (p == NULL)
|
|
Karsten Hopp |
edb16f |
{
|
|
Karsten Hopp |
edb16f |
fclose(fd);
|
|
Karsten Hopp |
edb16f |
goto errret; /* type error; errmsg already given */
|
|
Karsten Hopp |
edb16f |
}
|
|
Karsten Hopp |
edb16f |
! if (fwrite(p, STRLEN(p), 1, fd) != 1)
|
|
Karsten Hopp |
edb16f |
err = TRUE;
|
|
Karsten Hopp |
edb16f |
}
|
|
Karsten Hopp |
edb16f |
if (fclose(fd) != 0)
|
|
Karsten Hopp |
edb16f |
--- 18638,18653 ----
|
|
Karsten Hopp |
edb16f |
}
|
|
Karsten Hopp |
edb16f |
else
|
|
Karsten Hopp |
edb16f |
{
|
|
Karsten Hopp |
edb16f |
+ size_t len;
|
|
Karsten Hopp |
edb16f |
+
|
|
Karsten Hopp |
edb16f |
p = get_tv_string_buf_chk(&argvars[1], buf);
|
|
Karsten Hopp |
edb16f |
if (p == NULL)
|
|
Karsten Hopp |
edb16f |
{
|
|
Karsten Hopp |
edb16f |
fclose(fd);
|
|
Karsten Hopp |
edb16f |
goto errret; /* type error; errmsg already given */
|
|
Karsten Hopp |
edb16f |
}
|
|
Karsten Hopp |
edb16f |
! len = STRLEN(p);
|
|
Karsten Hopp |
edb16f |
! if (len > 0 && fwrite(p, len, 1, fd) != 1)
|
|
Karsten Hopp |
edb16f |
err = TRUE;
|
|
Karsten Hopp |
edb16f |
}
|
|
Karsten Hopp |
edb16f |
if (fclose(fd) != 0)
|
|
Karsten Hopp |
edb16f |
*** ../vim-7.4.450/src/version.c 2014-09-19 20:07:22.550449677 +0200
|
|
Karsten Hopp |
edb16f |
--- src/version.c 2014-09-19 20:19:22.390451249 +0200
|
|
Karsten Hopp |
edb16f |
***************
|
|
Karsten Hopp |
edb16f |
*** 743,744 ****
|
|
Karsten Hopp |
edb16f |
--- 743,746 ----
|
|
Karsten Hopp |
edb16f |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
edb16f |
+ /**/
|
|
Karsten Hopp |
edb16f |
+ 451,
|
|
Karsten Hopp |
edb16f |
/**/
|
|
Karsten Hopp |
edb16f |
|
|
Karsten Hopp |
edb16f |
--
|
|
Karsten Hopp |
edb16f |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
edb16f |
167. You have more than 200 websites bookmarked.
|
|
Karsten Hopp |
edb16f |
|
|
Karsten Hopp |
edb16f |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
edb16f |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
edb16f |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
edb16f |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|