]> git.ozlabs.org Git - ccan/blobdiff - ccan/utf8/utf8.h
utf8: don't allow NUL in decoded strings.
[ccan] / ccan / utf8 / utf8.h
index a095f02e870baf53d0020fd60ffecabc8a0b0cba..9a74696800cef1d8a5100703e6939d77d06e0343 100644 (file)
@@ -33,7 +33,7 @@ static inline void utf8_state_init(struct utf8_state *utf8_state)
  * Otherwise returns true, @utf8_state can be reused without initializeation,
  * and sets errno:
  * 0: success
- * EINVAL: bad encoding.
+ * EINVAL: bad encoding (including a NUL character).
  * EFBIG: not a minimal encoding.
  * ERANGE: encoding of invalid character.
  *