summaryrefslogtreecommitdiff
path: root/comms/gammu
diff options
context:
space:
mode:
authorjoerg <joerg>2012-07-09 19:17:51 +0000
committerjoerg <joerg>2012-07-09 19:17:51 +0000
commit9aa56a2aa071c4809417afa3b3829e8f47931222 (patch)
tree684b29ed3f161e6eb0e6a0f6d2f5416831c8bfb2 /comms/gammu
parent70eaaddbaee165ce113b042d8bfadd35400cb6ba (diff)
downloadpkgsrc-9aa56a2aa071c4809417afa3b3829e8f47931222.tar.gz
Don't use strcharnul from the helper library, it doesn't end up as PIC
when compiled with Clang.
Diffstat (limited to 'comms/gammu')
-rw-r--r--comms/gammu/distinfo3
-rw-r--r--comms/gammu/patches/patch-libgammu_phone_at_at-sms.c15
2 files changed, 17 insertions, 1 deletions
diff --git a/comms/gammu/distinfo b/comms/gammu/distinfo
index 67771144b2a..265f8fbcf32 100644
--- a/comms/gammu/distinfo
+++ b/comms/gammu/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.7 2012/02/16 17:13:03 hans Exp $
+$NetBSD: distinfo,v 1.8 2012/07/09 19:17:51 joerg Exp $
SHA1 (gammu-1.26.1.tar.bz2) = 122886f29c566f72020e91da119e1e04f7bfbec6
RMD160 (gammu-1.26.1.tar.bz2) = a913ac6c999f81ab4fda7c1656232484033ac540
Size (gammu-1.26.1.tar.bz2) = 2113622 bytes
SHA1 (patch-contrib_smscgi_sms__cgi.c) = c7f40671374294ce90f17541b15529ee4ee649aa
+SHA1 (patch-libgammu_phone_at_at-sms.c) = 0ffef60f4f8ab1677d807ef50f766a5141870e0f
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;