commit | ece29e80131afdd4bb7aa74f62b98cf97f1090b5 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Aug 06 12:49:18 2014 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Aug 06 12:49:18 2014 +0200 |
tree | 6eab07277d84cfc836c40efcef1025e599e25bd3 | |
parent | 4e067c898ef1f4a34cd70ddf3de3a1e60ac23c84 [diff] [blame] |
updated for version 7.4.390 Problem: Advancing pointer over end of a string. Solution: Init quote character to -1 instead of zero. (Dominique Pelle)
diff --git a/src/misc1.c b/src/misc1.c index 3a834aa..2c28aae 100644 --- a/src/misc1.c +++ b/src/misc1.c
@@ -5503,7 +5503,7 @@ char_u *text; { char_u *s = skipwhite(text); - int quote = 0; + int quote = -1; if (*s == '\'' || *s == '"') {