diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-05-30 14:17:22 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-05-30 14:17:22 -0600 |
commit | 6a6e3083d2d60cbd5bd581f432a0c56eff2bf29e (patch) | |
tree | b121fc58ee4d1d221cf25f09e57eca021397a396 /lib9p/core_gen/c_validate.py | |
parent | 691d3fe7ff920e8113d174c2ce6c3126000a2f82 (diff) | |
parent | 87512b09de24bb76ad67cf4bb1ada8f12fcdea2c (diff) |
Merge branch 'lukeshu/misc'
Diffstat (limited to 'lib9p/core_gen/c_validate.py')
-rw-r--r-- | lib9p/core_gen/c_validate.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib9p/core_gen/c_validate.py b/lib9p/core_gen/c_validate.py index e7a4017..8997237 100644 --- a/lib9p/core_gen/c_validate.py +++ b/lib9p/core_gen/c_validate.py @@ -67,7 +67,7 @@ def gen_c_validate(versions: set[str], typs: list[idl.UserType]) -> str: "\t\tsize_t len = n;\n" "\t\tVALIDATE_NET_BYTES(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' + f'\t\t\treturn lib9p_error(ctx, {c9util.IDENT("ERRNO_L_EILSEQ")}, "message contains invalid UTF-8");\n' "\t}\n" ) ret += cutil.macro( |