summaryrefslogtreecommitdiffstats
path: root/package/liblo/0002-src-server.c-fix-stringop-truncation-error.patch
diff options
context:
space:
mode:
authorFabrice Fontaine <fontaine.fabrice@gmail.com>2018-12-15 23:00:50 +0100
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-12-16 21:52:30 +0100
commit3697a8bac5c0cbf9801961e11a70f2ae76939b67 (patch)
treec02ec2293f0f56015298294183c0886b79536dde /package/liblo/0002-src-server.c-fix-stringop-truncation-error.patch
parentb808e65c1c4f83b5e6757e2d1cabd0df23e503fb (diff)
downloadbuildroot-3697a8bac5c0cbf9801961e11a70f2ae76939b67.tar.gz
buildroot-3697a8bac5c0cbf9801961e11a70f2ae76939b67.zip
package/liblo: fix stringop-truncation error with gcc 8
Fixes: - http://autobuild.buildroot.org/results/62896bd6a1a30facaffd07a7a763831996dc8ea0 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/liblo/0002-src-server.c-fix-stringop-truncation-error.patch')
-rw-r--r--package/liblo/0002-src-server.c-fix-stringop-truncation-error.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/liblo/0002-src-server.c-fix-stringop-truncation-error.patch b/package/liblo/0002-src-server.c-fix-stringop-truncation-error.patch
new file mode 100644
index 0000000000..3f3bf86cc3
--- /dev/null
+++ b/package/liblo/0002-src-server.c-fix-stringop-truncation-error.patch
@@ -0,0 +1,30 @@
+From c1b2fbd8d96d9b668a0b5e3c49c75c13cfe7d4ba Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Sat, 15 Dec 2018 21:55:08 +0100
+Subject: [PATCH] src/server.c: fix stringop-truncation error
+
+Fixes:
+ - http://autobuild.buildroot.org/results/62896bd6a1a30facaffd07a7a763831996dc8ea0
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: https://github.com/radarsat1/liblo/pull/70]
+---
+ src/server.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/server.c b/src/server.c
+index 6d1a9de..72aecc9 100644
+--- a/src/server.c
++++ b/src/server.c
+@@ -377,7 +377,7 @@ void lo_server_resolve_hostname(lo_server s)
+ gethostname(hostname, sizeof(hostname));
+ he = gethostbyname(hostname);
+ if (he) {
+- strncpy(hostname, he->h_name, sizeof(hostname));
++ strncpy(hostname, he->h_name, sizeof(hostname) - 1);
+ }
+ }
+
+--
+2.14.1
+
OpenPOWER on IntegriCloud