diff --git a/src/screen.c b/src/screen.c index b7107b6257..5acc7dc40b 100644 --- a/src/screen.c +++ b/src/screen.c @@ -6413,7 +6413,8 @@ screen_puts_len(text, len, row, col, attr) } else { - nc = utfc_ptr2char(ptr + mbyte_blen, pcc); + nc = utfc_ptr2char_len(ptr + mbyte_blen, pcc, + (int)((text + len) - ptr - mbyte_blen)); nc1 = pcc[0]; } pc = prev_c; diff --git a/src/version.c b/src/version.c index 474ae3f4af..7654400bc6 100644 --- a/src/version.c +++ b/src/version.c @@ -681,6 +681,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 291, /**/ 290, /**/