To: vim-dev@vim.org Subject: Patch 7.2.046 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 7.2.046 Problem: Wrong check for filling buffer with encoding. (Danek Duvall) Solution: Remove pointers. (Dominique Pelle) Files: src/mbyte.c *** ../vim-7.2.045/src/mbyte.c Wed Nov 12 13:07:48 2008 --- src/mbyte.c Wed Nov 19 21:44:50 2008 *************** *** 3131,3137 **** else s = p + 1; } ! for (i = 0; s[i] != NUL && s + i < buf + sizeof(buf) - 1; ++i) { if (s[i] == '_' || s[i] == '-') buf[i] = '-'; --- 3131,3137 ---- else s = p + 1; } ! for (i = 0; s[i] != NUL && i < sizeof(buf) - 1; ++i) { if (s[i] == '_' || s[i] == '-') buf[i] = '-'; *** ../vim-7.2.045/src/version.c Thu Nov 20 11:04:01 2008 --- src/version.c Thu Nov 20 11:54:23 2008 *************** *** 678,679 **** --- 678,681 ---- { /* Add new patch number below this line */ + /**/ + 46, /**/ -- He was not in the least bit scared to be mashed into a pulp Or to have his eyes gouged out and his elbows broken; To have his kneecaps split and his body burned away And his limbs all hacked and mangled, brave Sir Robin. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///