From d523e7a676d6d2cdda0369fac3dc9f953d3a4e96 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 17 Dec 2024 11:01:17 +0100 Subject: term: set_app_id() + set_window_title(): only allow printable characters --- misc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc.h') diff --git a/misc.h b/misc.h index cce8d2c1..6c77c484 100644 --- a/misc.h +++ b/misc.h @@ -9,4 +9,4 @@ bool isword(char32_t wc, bool spaces_only, const char32_t *delimiters); void timespec_add(const struct timespec *a, const struct timespec *b, struct timespec *res); void timespec_sub(const struct timespec *a, const struct timespec *b, struct timespec *res); -bool is_valid_utf8(const char *value); +bool is_valid_utf8_and_printable(const char *value); -- cgit v1.3