Mercurial > vim
comparison src/buffer.c @ 5407:7b760cda2bbf v7.4.054
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)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 02 Nov 2013 04:39:38 +0100 |
parents | f6247eaf4e1d |
children | 878ed73c7070 |
comparison
equal
deleted
inserted
replaced
5406:95b054866009 | 5407:7b760cda2bbf |
---|---|
4060 item[curitem].type = Highlight; | 4060 item[curitem].type = Highlight; |
4061 item[curitem].start = p; | 4061 item[curitem].start = p; |
4062 item[curitem].minwid = -syn_namen2id(t, (int)(s - t)); | 4062 item[curitem].minwid = -syn_namen2id(t, (int)(s - t)); |
4063 curitem++; | 4063 curitem++; |
4064 } | 4064 } |
4065 ++s; | 4065 if (*s != NUL) |
4066 ++s; | |
4066 continue; | 4067 continue; |
4067 } | 4068 } |
4068 | 4069 |
4069 item[curitem].start = p; | 4070 item[curitem].start = p; |
4070 item[curitem].type = Normal; | 4071 item[curitem].type = Normal; |