@@ -549,7 +549,7 @@ gboolean sms_encode_address_field(const struct sms_address *in, gboolean sc,
unsigned char *r;
/* TP-OA's 10 octets transport 11 8-bit chars */
- if (g_utf8_strlen(addr, strlen(addr)) > 11)
+ if (l_utf8_strlen(addr) > 11)
return FALSE;
gsm = convert_utf8_to_gsm(in->address, len, NULL, &written, 0);
@@ -838,7 +838,7 @@ static void get_input_cb(DBusPendingCall *call, void *data)
goto error;
}
- len = g_utf8_strlen(string, -1);
+ len = l_utf8_strlen(string);
if (len < agent->min_length || len > agent->max_length) {
ofono_error("Length not acceptable");