|
Karsten Hopp |
72f8d8 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
72f8d8 |
Subject: Patch 7.2.134
|
|
Karsten Hopp |
72f8d8 |
Fcc: outbox
|
|
Karsten Hopp |
72f8d8 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
72f8d8 |
Mime-Version: 1.0
|
|
Karsten Hopp |
72f8d8 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
72f8d8 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
72f8d8 |
------------
|
|
Karsten Hopp |
72f8d8 |
|
|
Karsten Hopp |
72f8d8 |
Patch 7.2.134
|
|
Karsten Hopp |
72f8d8 |
Problem: Warning for discarding "const" from pointer.
|
|
Karsten Hopp |
72f8d8 |
Solution: Don't pass const pointer to mch_memmove().
|
|
Karsten Hopp |
72f8d8 |
Files: src/fileio.c
|
|
Karsten Hopp |
72f8d8 |
|
|
Karsten Hopp |
72f8d8 |
|
|
Karsten Hopp |
72f8d8 |
*** ../vim-7.2.133/src/fileio.c Thu Mar 5 03:13:51 2009
|
|
Karsten Hopp |
72f8d8 |
--- src/fileio.c Wed Mar 11 12:59:35 2009
|
|
Karsten Hopp |
72f8d8 |
***************
|
|
Karsten Hopp |
72f8d8 |
*** 5288,5300 ****
|
|
Karsten Hopp |
72f8d8 |
/* Convert with iconv(). */
|
|
Karsten Hopp |
72f8d8 |
if (ip->bw_restlen > 0)
|
|
Karsten Hopp |
72f8d8 |
{
|
|
Karsten Hopp |
72f8d8 |
/* Need to concatenate the remainder of the previous call and
|
|
Karsten Hopp |
72f8d8 |
* the bytes of the current call. Use the end of the
|
|
Karsten Hopp |
72f8d8 |
* conversion buffer for this. */
|
|
Karsten Hopp |
72f8d8 |
fromlen = len + ip->bw_restlen;
|
|
Karsten Hopp |
72f8d8 |
! from = (char *)ip->bw_conv_buf + ip->bw_conv_buflen - fromlen;
|
|
Karsten Hopp |
72f8d8 |
! mch_memmove((void *)from, ip->bw_rest, (size_t)ip->bw_restlen);
|
|
Karsten Hopp |
72f8d8 |
! mch_memmove((void *)(from + ip->bw_restlen), buf, (size_t)len);
|
|
Karsten Hopp |
72f8d8 |
tolen = ip->bw_conv_buflen - fromlen;
|
|
Karsten Hopp |
72f8d8 |
}
|
|
Karsten Hopp |
72f8d8 |
else
|
|
Karsten Hopp |
72f8d8 |
--- 5288,5303 ----
|
|
Karsten Hopp |
72f8d8 |
/* Convert with iconv(). */
|
|
Karsten Hopp |
72f8d8 |
if (ip->bw_restlen > 0)
|
|
Karsten Hopp |
72f8d8 |
{
|
|
Karsten Hopp |
72f8d8 |
+ char *fp;
|
|
Karsten Hopp |
72f8d8 |
+
|
|
Karsten Hopp |
72f8d8 |
/* Need to concatenate the remainder of the previous call and
|
|
Karsten Hopp |
72f8d8 |
* the bytes of the current call. Use the end of the
|
|
Karsten Hopp |
72f8d8 |
* conversion buffer for this. */
|
|
Karsten Hopp |
72f8d8 |
fromlen = len + ip->bw_restlen;
|
|
Karsten Hopp |
72f8d8 |
! fp = (char *)ip->bw_conv_buf + ip->bw_conv_buflen - fromlen;
|
|
Karsten Hopp |
72f8d8 |
! mch_memmove(fp, ip->bw_rest, (size_t)ip->bw_restlen);
|
|
Karsten Hopp |
72f8d8 |
! mch_memmove(fp + ip->bw_restlen, buf, (size_t)len);
|
|
Karsten Hopp |
72f8d8 |
! from = fp;
|
|
Karsten Hopp |
72f8d8 |
tolen = ip->bw_conv_buflen - fromlen;
|
|
Karsten Hopp |
72f8d8 |
}
|
|
Karsten Hopp |
72f8d8 |
else
|
|
Karsten Hopp |
72f8d8 |
*** ../vim-7.2.133/src/version.c Wed Mar 11 12:45:44 2009
|
|
Karsten Hopp |
72f8d8 |
--- src/version.c Wed Mar 11 13:08:25 2009
|
|
Karsten Hopp |
72f8d8 |
***************
|
|
Karsten Hopp |
72f8d8 |
*** 678,679 ****
|
|
Karsten Hopp |
72f8d8 |
--- 678,681 ----
|
|
Karsten Hopp |
72f8d8 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
72f8d8 |
+ /**/
|
|
Karsten Hopp |
72f8d8 |
+ 134,
|
|
Karsten Hopp |
72f8d8 |
/**/
|
|
Karsten Hopp |
72f8d8 |
|
|
Karsten Hopp |
72f8d8 |
--
|
|
Karsten Hopp |
72f8d8 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
72f8d8 |
193. You ask your girlfriend to drive home so you can sit back with
|
|
Karsten Hopp |
72f8d8 |
your PDA and download the information to your laptop
|
|
Karsten Hopp |
72f8d8 |
|
|
Karsten Hopp |
72f8d8 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
72f8d8 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
72f8d8 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
72f8d8 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|