summaryrefslogtreecommitdiff
path: root/lib9p/core_gen/c_validate.py
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-05-17 13:33:51 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-05-17 13:33:51 -0600
commit42fb27570262b52e2ca889030c621b5f4af76fe1 (patch)
tree1d70f96baa5089f8878a9c121ff0770846ad4090 /lib9p/core_gen/c_validate.py
parent18ddce6270391e5c1924394f8b5d8079ad73289e (diff)
parent556f3ff6ccb9fa4b193d91216f85e8ade33b4383 (diff)
Merge branch 'lukeshu/lint-ish'HEADmain
Diffstat (limited to 'lib9p/core_gen/c_validate.py')
-rw-r--r--lib9p/core_gen/c_validate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib9p/core_gen/c_validate.py b/lib9p/core_gen/c_validate.py
index 9c55d8d..e7a4017 100644
--- a/lib9p/core_gen/c_validate.py
+++ b/lib9p/core_gen/c_validate.py
@@ -66,7 +66,7 @@ def gen_c_validate(versions: set[str], typs: list[idl.UserType]) -> str:
"\t{\n"
"\t\tsize_t len = n;\n"
"\t\tVALIDATE_NET_BYTES(len);\n"
- "\t\tif (!is_valid_utf8_without_nul(&net_bytes[net_offset-len], len))\n"
+ "\t\tif (!utf8_is_valid_without_nul(&net_bytes[net_offset-len], len))\n"
f'\t\t\treturn lib9p_error(ctx, {c9util.IDENT("ERRNO_L_EBADMSG")}, "message contains invalid UTF-8");\n'
"\t}\n"
)