mirror of git://git.sysmocom.de/ofono
util: Return the number of bytes read, not chars
To be consistent with the documentation header and other functions of this type
This commit is contained in:
parent
9842355fe4
commit
1a340c7cf1
|
@ -1354,7 +1354,7 @@ unsigned char *convert_ucs2_to_gsm_with_lang(const unsigned char *text,
|
|||
|
||||
err_out:
|
||||
if (items_read)
|
||||
*items_read = nchars;
|
||||
*items_read = i;
|
||||
|
||||
return res;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue