forked from osmocom/wireshark
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:
parent
25d0c88251
commit
044dd69725
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue