diff options
author | oni-link <knil.ino@gmail.com> | 2016-01-26 18:24:28 +0100 |
---|---|---|
committer | oni-link <knil.ino@gmail.com> | 2016-01-26 19:04:18 +0100 |
commit | 18ca2035fe219d8d25f5a52c4c869c8a6c1ab85c (patch) | |
tree | 2ace45c1100600868027b9ad30359b8761f72287 /runtime/syntax/php.vim | |
parent | 9b0b3a0883ab6c9d9f57fcf65d5bc951f40dff3c (diff) | |
download | rneovim-18ca2035fe219d8d25f5a52c4c869c8a6c1ab85c.tar.gz rneovim-18ca2035fe219d8d25f5a52c4c869c8a6c1ab85c.tar.bz2 rneovim-18ca2035fe219d8d25f5a52c4c869c8a6c1ab85c.zip |
search.c: searchit(): Remove strlen() check
While in the `while` loop at line 603 of function searchit(), memory
address ptr+matchpos is always valid. The strlen() check should not be
necessary to verify this.
Also added a check to prevent reading a line after the end of the
buffer.
Diffstat (limited to 'runtime/syntax/php.vim')
0 files changed, 0 insertions, 0 deletions