fix: hostname truncation (#63)

Co-authored-by: javalsai <javalsai@proton.me>
This commit is contained in:
Ar1gin
2025-07-16 17:19:58 +05:00
committed by GitHub
parent 6c99675be7
commit 8fc6bff60f
3 changed files with 32 additions and 20 deletions

View File

@@ -19,6 +19,7 @@ bool read_press_nb(u_char* length, char* out, struct timeval* tv);
bool utf8_iscont(char byte);
size_t utf8len(const char* str);
size_t utf8len_until(const char* str, const char* until);
size_t utf8trunc(char* str, size_t n);
const char* utf8back(const char* str);
const char* utf8seek(const char* str);
const char* utf8seekn(const char* str, size_t n);