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:
Denis Kenzior 2010-09-14 11:45:11 -05:00
parent 9842355fe4
commit 1a340c7cf1
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}