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