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
1 changed files with 1 additions and 1 deletions

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);