summaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-09-14 11:45:11 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-09-14 11:45:11 -0500
commit1a340c7cf193a942e60e25db5b536299bc17c540 (patch)
treed629a5f582cae2dcd07cc443762b7b8f6834c052 /src/util.c
parent9842355fe4263975c875a655348f22e977d40c10 (diff)
downloadofono-1a340c7cf193a942e60e25db5b536299bc17c540.tar.bz2
util: Return the number of bytes read, not chars
To be consistent with the documentation header and other functions of this type
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
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;
}