From 1a340c7cf193a942e60e25db5b536299bc17c540 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 14 Sep 2010 11:45:11 -0500 Subject: util: Return the number of bytes read, not chars To be consistent with the documentation header and other functions of this type --- src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/util.c b/src/util.c index 4b4a83c4..7bd57953 100644 --- a/src/util.c +++ b/src/util.c @@ -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; } -- cgit v1.2.3