gnokii-users
[Top][All Lists]
Advanced

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

sms with at phones


From: Joerg Hollmann
Subject: sms with at phones
Date: Mon, 2 Sep 2002 09:44:18 +0200
User-agent: KMail/1.4.3

Hi,
accessing an empty sms location on my Siemens S45 gives a seg fault. This 
patch fixed it for me.

--- atgen.c.orig        Sun Sep  1 19:02:52 2002
+++ atgen.c     Mon Sep  2 09:01:45 2002
@@ -1020,7 +1020,7 @@
        splitlines(&buf);

        if (!data->RawSMS) return GE_INTERNALERROR;
-
+       if (!strncmp("+CMGR: 0,,0", buf.line2, 11)) return GE_EMPTYLOCATION;
        sms_len = strlen(buf.line3) / 2;
        tmp = calloc(sms_len, 1);
        dprintf("%s\n", buf.line3);


regards,
Joerg




reply via email to

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