# HG changeset patch # User Christian Brabandt # Date 1456610404 -3600 # Node ID 097886a3379b24d6205c142a575ae557f64967e6 # Parent 88207f4b861ac253b2cebef4590a12370c6643ff commit https://github.com/vim/vim/commit/0f526f5652e0a5432493b3f2a1cb34ab99a9da0a Author: Bram Moolenaar Date: Sat Feb 27 22:59:41 2016 +0100 patch 7.4.1444 Problem: Can't build with JSON but without multi-byte. Solution: Fix pointer name. diff --git a/src/json.c b/src/json.c --- a/src/json.c +++ b/src/json.c @@ -101,7 +101,7 @@ write_string(garray_T *gap, char_u *str) /* always use utf-8 encoding, ignore 'encoding' */ c = utf_ptr2char(res); #else - c = (int)*(p); + c = *res; #endif switch (c) @@ -142,7 +142,7 @@ write_string(garray_T *gap, char_u *str) #ifdef FEAT_MBYTE res += utf_ptr2len(res); #else - ++p; + ++res; #endif } ga_append(gap, '"'); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -744,6 +744,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1444, +/**/ 1443, /**/ 1442,