gnokii-users
[Top][All Lists]
Advanced

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

Bug in common/phones/atgen.c


From: Daniele Forsi
Subject: Bug in common/phones/atgen.c
Date: Wed, 29 Jun 2005 00:27:03 +0200
User-agent: KMail/1.4.3

len was changed *after* encoding.

Daniele

--- common/phones/atgen.c.orig  2005-06-29 00:22:44.000000000 +0200
+++ common/phones/atgen.c       2005-06-29 00:23:57.000000000 +0200
@@ -256,13 +256,13 @@
                len = char_ascii_encode(dst, src, len);
                break;
        case AT_CHAR_HEXGSM:
-               char_hex_encode(dst, src, len);
                len *= 2;
+               char_hex_encode(dst, src, len);
                break;
        case AT_CHAR_UCS2:
-               char_ucs2_encode(dst, src, len);
                len *= 4;
-               break;
+               char_ucs2_encode(dst, src, len);
+               break;
        default:
                memcpy(dst, src, len);
                break;





reply via email to

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