refactor(mbyte.c): add const qualifiers

This only touches functions that do not return a pointer.
Also add a note about the differences between mb_head_off() and utf_head_off().
This commit is contained in:
zeertzjq
2022-02-09 09:52:57 +08:00
parent e16ec0be22
commit ff81725ff0
3 changed files with 19 additions and 26 deletions

View File

@@ -3327,7 +3327,7 @@ void maketitle(void)
len = (int)STRLEN(buf_p);
if (len > 100) {
len -= 100;
len += (*mb_tail_off)(buf_p, buf_p + len) + 1;
len += mb_tail_off(buf_p, buf_p + len) + 1;
buf_p += len;
}
STRCPY(icon_str, buf_p);