commit | 1180822670e987ef204dfbf24e55fc09eed89650 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Nov 02 04:39:38 2013 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Nov 02 04:39:38 2013 +0100 |
tree | 1b127d0583fb4a04d9be8358f3fd222cf48febb3 | |
parent | b69a714bb75e25881eb3d4ce116894272535202b [diff] [blame] |
updated for version 7.4.054 Problem: Reading past end of the 'stl' string. Solution: Don't increment pointer when already at the NUL. (Christian Brabandt)
diff --git a/src/buffer.c b/src/buffer.c index 34273d8..7b02dda 100644 --- a/src/buffer.c +++ b/src/buffer.c
@@ -4062,7 +4062,8 @@ item[curitem].minwid = -syn_namen2id(t, (int)(s - t)); curitem++; } - ++s; + if (*s != NUL) + ++s; continue; }