gnokii-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-29


From: Daniele Forsi
Subject: [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-29-g8deee07
Date: Thu, 01 Jul 2010 19:42:16 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".

The branch, master has been updated
       via  8deee072e5d43ef6bf56e3810fb16d0fded2a79f (commit)
      from  135993679b0e2aeede8d2aff71aa4c0b31647207 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=8deee072e5d43ef6bf56e3810fb16d0fded2a79f


commit 8deee072e5d43ef6bf56e3810fb16d0fded2a79f
Author: Daniele Forsi <address@hidden>
Date:   Thu Jul 1 21:38:49 2010 +0200

    Return value for char_uni_alphabet_encode() is 0 if the string ended or -1 
in case of error
    
    It is the return value of iconv(), mbrtowc() or mbtowc() depending
    on conditional compiling.

diff --git a/common/gsm-encoding.c b/common/gsm-encoding.c
index b99440b..72cb142 100644
--- a/common/gsm-encoding.c
+++ b/common/gsm-encoding.c
@@ -902,7 +902,7 @@ size_t char_ucs2_encode(char *dest, size_t dest_len, const 
char *src, size_t len
                 */
                length = char_uni_alphabet_encode(src + i, len - i, &wc, &mbs);
                /* We stop reading after first unreadable input */
-               if (!length)
+               if (length < 1)
                        return o_len * UCS2_SIZE;
                i += length;
                /* We write here 4 chars + NULL termination */

-----------------------------------------------------------------------

Summary of changes:
 common/gsm-encoding.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
libgnokii and core programs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]