aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil
diff options
context:
space:
mode:
authorJohn Thacker <johnthacker@gmail.com>2022-02-05 22:34:21 -0500
committerJohn Thacker <johnthacker@gmail.com>2022-02-05 22:34:21 -0500
commit044dd69725bd4692e90e40136144846e5b2b989a (patch)
tree0f521dc3af67350f059b698725e75d797241897f /wsutil
parent25d0c88251b7649cd58ae791252ec74d6ab6e3de (diff)
wsutil: Just use g_utf8_validate for now
g_utf8_validate_len doesn't exist until glib 2.60, so just use g_utf8_validate. It does the same thing when the length parameter is unsigned. Fixes CentOS 7.
Diffstat (limited to 'wsutil')
-rw-r--r--wsutil/str_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wsutil/str_util.c b/wsutil/str_util.c
index d17f9a6d60..099e331295 100644
--- a/wsutil/str_util.c
+++ b/wsutil/str_util.c
@@ -277,7 +277,7 @@ isprint_utf8_string(const gchar *str, const guint length)
{
const gchar *strend = str + length;
- if (!g_utf8_validate_len(str, length, NULL)) {
+ if (!g_utf8_validate(str, length, NULL)) {
return FALSE;
}