summaryrefslogtreecommitdiff
path: root/comms/gammu/patches/patch-libgammu_phone_at_at-sms.c
diff options
context:
space:
mode:
Diffstat (limited to 'comms/gammu/patches/patch-libgammu_phone_at_at-sms.c')
-rw-r--r--comms/gammu/patches/patch-libgammu_phone_at_at-sms.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/comms/gammu/patches/patch-libgammu_phone_at_at-sms.c b/comms/gammu/patches/patch-libgammu_phone_at_at-sms.c
new file mode 100644
index 00000000000..822b63e6544
--- /dev/null
+++ b/comms/gammu/patches/patch-libgammu_phone_at_at-sms.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-libgammu_phone_at_at-sms.c,v 1.1 2012/07/09 19:17:52 joerg Exp $
+
+--- libgammu/phone/at/at-sms.c.orig 2012-07-06 11:57:04.000000000 +0000
++++ libgammu/phone/at/at-sms.c
+@@ -83,7 +83,9 @@ GSM_Error ATGEN_ReplyGetSMSMemories(GSM_
+ }
+ if (pos_start != NULL) {
+ /* Detect which memories we can use for saving */
+- pos_end = strchrnul(pos_start + 1, ')');
++ pos_end = strchr(pos_start + 1, ')');
++ if (pos_end == NULL)
++ pos_end = pos_start + strlen(pos_start);
+ pos_tmp = strstr(pos_start, "\"SM\"");
+ if (pos_tmp != NULL && pos_tmp < pos_end) {
+ s->Phone.Data.Priv.ATGEN.SIMSaveSMS = AT_AVAILABLE;