To: vim-dev@vim.org Subject: Patch 5.7a.004 Fcc: outbox From: Bram Moolenaar ------------ Patch 5.7a.004 Problem: When reporting the search pattern offset, the string could be unterminated, which may cause a crash. Solution: Terminate the string for the search offset. (Stephen P. Wall) Files: src/search.c *** ../vim-5.7a.3/src/search.c Sun Jun 18 15:37:36 2000 --- src/search.c Mon Jun 19 21:22:30 2000 *************** *** 790,795 **** --- 790,797 ---- *p++ = '+'; if (spats[0].off.off != 0 || spats[0].off.line) sprintf((char *)p, "%ld", spats[0].off.off); + else + *p = NUL; } msg_start(); *** ../vim-5.7a.3/src/version.c Sun Jun 18 15:37:36 2000 --- src/version.c Mon Jun 19 21:24:03 2000 *************** *** 420,421 **** --- 420,423 ---- { /* Add new patch number below this line */ + /**/ + 4, /**/ -- hundred-and-one symptoms of being an internet addict: 58. You turn on your computer and turn off your wife. /-/-- Bram Moolenaar --- Bram@moolenaar.net --- http://www.moolenaar.net --\-\ \-\-- Vim: http://www.vim.org ---- ICCF Holland: http://www.vim.org/iccf --/-/