diff options
author | John Thacker <johnthacker@gmail.com> | 2022-02-05 22:34:21 -0500 |
---|---|---|
committer | John Thacker <johnthacker@gmail.com> | 2022-02-05 22:34:21 -0500 |
commit | 044dd69725bd4692e90e40136144846e5b2b989a (patch) | |
tree | 0f521dc3af67350f059b698725e75d797241897f | |
parent | 25d0c88251b7649cd58ae791252ec74d6ab6e3de (diff) | |
download | wireshark-044dd69725bd4692e90e40136144846e5b2b989a.tar.gz wireshark-044dd69725bd4692e90e40136144846e5b2b989a.tar.bz2 wireshark-044dd69725bd4692e90e40136144846e5b2b989a.zip |
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.
-rw-r--r-- | wsutil/str_util.c | 2 |
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; } |