To: vim_dev@googlegroups.com Subject: Patch 8.0.1442 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1442 (after 8.0.1439) Problem: Using pointer before it is set. Solution: Search in whole buffer instead of next token. Files: src/if_cscope.c *** ../vim-8.0.1441/src/if_cscope.c 2018-01-30 21:47:48.021251412 +0100 --- src/if_cscope.c 2018-01-30 22:50:27.719350739 +0100 *************** *** 702,708 **** * Accept "\S*cscope: X lines", also matches "mlcscope". * Bail out for the "Unable to search" error. */ ! if (strstr((const char *)stok, "Unable to search database") != NULL) break; if ((stok = strtok(buf, (const char *)" ")) == NULL) continue; --- 702,708 ---- * Accept "\S*cscope: X lines", also matches "mlcscope". * Bail out for the "Unable to search" error. */ ! if (strstr((const char *)buf, "Unable to search database") != NULL) break; if ((stok = strtok(buf, (const char *)" ")) == NULL) continue; *** ../vim-8.0.1441/src/version.c 2018-01-30 22:46:01.409404229 +0100 --- src/version.c 2018-01-30 22:51:18.078960545 +0100 *************** *** 773,774 **** --- 773,776 ---- { /* Add new patch number below this line */ + /**/ + 1442, /**/ -- ARTHUR: (as the MAN next to him is squashed by a sheep) Knights! Run away! Midst echoing shouts of "run away" the KNIGHTS retreat to cover with the odd cow or goose hitting them still. The KNIGHTS crouch down under cover. "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/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///