gnokii-users
[Top][All Lists]
Advanced

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

[PATCH] 6310i ToDo writing improved


From: Balint Reczey
Subject: [PATCH] 6310i ToDo writing improved
Date: Sun, 19 Dec 2004 00:15:28 +0000 (GMT)

Hi!

This patch hopefully fixes ToDo writing. 
The previous patch did not fix all problems, the phone
appended memory random characters to todo texts even
after patching.
Could it be added to CVS?

Balint



        
        
                
___________________________________________________________ 
ALL-NEW Yahoo! Messenger - all new features - even more fun! 
http://uk.messenger.yahoo.com
Index: gnokii/common/phones/nk6510.c
===================================================================
RCS file: /cvsroot/gnokii/gnokii/common/phones/nk6510.c,v
retrieving revision 1.159
diff -r1.159 nk6510.c
4107c4107,4109
<                                 0x0D, 0x80, 0x00, 0x00, 0x01};        /* 
Location */
---
>                                 0x0E, /* length of text + 1*/
>                                 0x80, 0x00,
>                                 0x00, 0x01};  /* Location */
4119a4122,4126
>       
>       if (length > 253) return GN_ERR_ENTRYTOOLONG;
>       
>       req[5] = length + 1;
>       
4121c4128,4130
< 
---
>       
>       req[10 + length ] = '\0';    // kind of padding 
>       req[10 + length + 1] = '\0'; // 
4123c4132,4135
<       if (sm_message_send(length, NK6510_MSG_TODO, req, state)) return 
GN_ERR_NOTREADY;
---
>       if (sm_message_send(length+12, NK6510_MSG_TODO, req, state)) {
>               free(req);
>               return GN_ERR_NOTREADY;
>       }

reply via email to

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