aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kannel/fix-arm-build.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2016-04-05 16:01:16 +0300
committerTimo Teräs <timo.teras@iki.fi>2016-04-05 16:01:38 +0300
commit6f70e4abaa5d2663a612c921fc5d0fbc7dc2bee0 (patch)
tree7dd5340b7a11759ca61b769adbe3e220b341c9b7 /testing/kannel/fix-arm-build.patch
parent0f9fbafb99a7db991b9d2b359b4f295bb2e18017 (diff)
downloadaports-6f70e4abaa5d2663a612c921fc5d0fbc7dc2bee0.tar.bz2
aports-6f70e4abaa5d2663a612c921fc5d0fbc7dc2bee0.tar.xz
testing/kannel: fix arm build
Diffstat (limited to 'testing/kannel/fix-arm-build.patch')
-rw-r--r--testing/kannel/fix-arm-build.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/kannel/fix-arm-build.patch b/testing/kannel/fix-arm-build.patch
new file mode 100644
index 0000000000..5b40b09274
--- /dev/null
+++ b/testing/kannel/fix-arm-build.patch
@@ -0,0 +1,20 @@
+https://kannel.org/issues/587
+
+--- gateway-1.5.0/gwlib/log.c.orig 2016-04-05 15:56:21.757679376 +0300
++++ gateway-1.5.0/gwlib/log.c 2016-04-05 15:59:43.253393207 +0300
+@@ -431,13 +431,8 @@
+ int translog;
+
+ if (level >= sysloglevel && dosyslog) {
+- if (args == NULL) {
+- strncpy(buf, format, sizeof(buf));
+- buf[sizeof(buf) - 1] = '\0';
+- } else {
+- vsnprintf(buf, sizeof(buf), format, args);
+- /* XXX vsnprint not 100% portable */
+- }
++ vsnprintf(buf, sizeof(buf), format, args);
++ /* XXX vsnprint not 100% portable */
+
+ switch(level) {
+ case GW_DEBUG: