diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-09-14 11:45:11 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-09-14 11:45:11 -0500 |
commit | 1a340c7cf193a942e60e25db5b536299bc17c540 (patch) | |
tree | d629a5f582cae2dcd07cc443762b7b8f6834c052 /src/util.c | |
parent | 9842355fe4263975c875a655348f22e977d40c10 (diff) | |
download | ofono-1a340c7cf193a942e60e25db5b536299bc17c540.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |