1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-04 11:23:11 +02:00

Changes to unrl_utf8_make_valid():

1) No longer impose a static maximum length
2) Caller must provide a work buffer and maximum length
3) Add a strict length check option
This commit is contained in:
Bram Matthys
2021-08-09 08:45:05 +02:00
parent 91a3c71d60
commit 4ad7d02ffa
3 changed files with 43 additions and 22 deletions
+1 -1
View File
@@ -1007,7 +1007,7 @@ extern NameList *find_name_list(NameList *list, char *name);
extern NameList *find_name_list_match(NameList *list, char *name);
extern int minimum_msec_since_last_run(struct timeval *tv_old, long minimum);
extern int unrl_utf8_validate(const char *str, const char **end);
extern char *unrl_utf8_make_valid(const char *str);
extern char *unrl_utf8_make_valid(const char *str, char *outputbuf, size_t outputbuflen, int strict_length_check);
extern void utf8_test(void);
extern MODVAR int non_utf8_nick_chars_in_use;
extern void short_motd(Client *client);