term: tty: update hash api usage

This commit is contained in:
2025-09-22 10:55:04 +01:00
parent 30210d67e0
commit 11fd147031

View File

@@ -51,7 +51,7 @@
static void apply_code_to_vmode(struct tty_format_buf *fmt)
{
const char *modifier = fmt->buf;
uint64_t mod_hash = b_hash_string(modifier);
uint64_t mod_hash = b_hash_cstr(modifier);
if (COMPARE_MOD_NAME(modifier, "black", mod_hash, MOD_HASH_BLACK)) {
fmt->vmode.v_fg.c_mode = B_TTY_COLOUR_16;