Thread
:
HOWTO: Importing SMS messages from Nokia phones to N900
View Single Post
eezo
2009-12-20 , 15:16
Posts: 22 | Thanked: 6 times | Joined on Dec 2009
#
56
First of all, thank you for the app!
Sadly, though, it doesn't work for me. I copied the inbox and sent folders to my N900 via Bluetooth, but I get a segfault using v0.2.
One thing that strikes me about the code is that the char array text only holds 161 bytes including the final NULL-byte. I'd be fine with that, but some of my old SMS on my N70 are way longer than that (read: 752 Bytes + \0). The N70 supports up to 30 SMS "in one".
Unfortunately, I have no clue how to compile stuff for the N900 to add debug code to go about and find the problem causing the segfault.
/edit: Just did some debugging on my x86 box: If you malloc 2 bytes for delimiter before memcpy'ing it from the buf pointer it doesn't segfault there anymore. I can't say if that's also the deal on the N900.
Just a random side note: smsimporter can't parse the line if the delimiter also exists in the SMS's text - could you somehow work around that? What about quotation marks in the text's content? Keep up the good work
Last edited by eezo; 2009-12-20 at
17:42
.
Quote & Reply
|
eezo
View Public Profile
Send a private message to eezo
Find all posts by eezo