@@ -187,7 +187,7 @@ int mk_wcwidth(wchar_t ucs)
188 /* if we arrive here, ucs is not a combining or C0/C1 control character */
188 /* if we arrive here, ucs is not a combining or C0/C1 control character */
190− return 1 +
190+ return 1 +
191 (ucs >= 0x1100 &&
191 (ucs >= 0x1100 &&
192 (ucs <= 0x115f || /* Hangul Jamo init. consonants */
192 (ucs <= 0x115f || /* Hangul Jamo init. consonants */
193 ucs == 0x2329 || ucs == 0x232a ||
193 ucs == 0x2329 || ucs == 0x232a ||
@@ -208,7 +208,7 @@ int mk_wcswidth(const wchar_t *pwcs, size_t n)
209 int w, width = 0;
209 int w, width = 0;
211− for (;*pwcs && n-- > 0; pwcs++)
211+ for (;n-- > 0; pwcs++)
212 if ((w = mk_wcwidth(*pwcs)) < 0)
212 if ((w = mk_wcwidth(*pwcs)) < 0)
213 return -1;
213 return -1;
@@ -299,7 +299,7 @@ int mk_wcswidth_cjk(const wchar_t *pwcs, size_t n)
300 int w, width = 0;
300 int w, width = 0;
302− for (;*pwcs && n-- > 0; pwcs++)
302+ for (;n-- > 0; pwcs++)
303 if ((w = mk_wcwidth_cjk(*pwcs)) < 0)
303 if ((w = mk_wcwidth_cjk(*pwcs)) < 0)
304 return -1;
304 return -1;