# HG changeset patch # User vimboss # Date 1165352806 0 # Node ID 8647018a15f3e4e89c706b6290ab0151565f394a # Parent e14d0a530351fe26450893977197e81e9e9ae5f2 updated for version 7.0-178 diff --git a/src/mbyte.c b/src/mbyte.c --- a/src/mbyte.c +++ b/src/mbyte.c @@ -2294,8 +2294,14 @@ mb_strnicmp(s1, s2, nn) } /* Check directly first, it's faster. */ for (j = 0; j < l; ++j) + { if (s1[i + j] != s2[i + j]) break; + if (s1[i + j] == 0) + /* Both stings have the same bytes but are incomplete or + * have illegal bytes, accept them as equal. */ + l = j; + } if (j < l) { /* If one of the two characters is incomplete return -1. */ diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -667,6 +667,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 178, +/**/ 177, /**/ 176,