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.
This commit is contained in:
John Thacker 2022-02-05 22:34:21 -05:00
parent 25d0c88251
commit 044dd69725
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}