3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-16 17:09:24 +01:00

wsc: Cast data pointer into char for UTF-8 validation

This commit is contained in:
Marcel Holtmann 2015-07-19 18:44:40 +02:00
parent 02c3645c69
commit 07301eb74f

View File

@ -214,7 +214,7 @@ static bool extract_utf8_string(struct wsc_attr_iter *iter, void *data,
break;
}
if (!l_utf8_validate(p, i, NULL))
if (!l_utf8_validate((const char *) p, i, NULL))
return false;
memcpy(out, p, i);