Skip to content

Commit afad857

Browse files
krajakuster
authored andcommitted
lowpan-tools: Switch to using github src_uri and fix build with gcc8
Signed-off-by: Khem Raj <[email protected]> Signed-off-by: Armin Kuster <[email protected]>
1 parent ae1d381 commit afad857

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
From f017353b8f3170ce79e7addc127056c0142f087b Mon Sep 17 00:00:00 2001
2+
From: Khem Raj <[email protected]>
3+
Date: Sun, 1 Apr 2018 14:31:05 -0700
4+
Subject: [PATCH] coordinator: Fix strncpy range warning
5+
6+
Fixes
7+
error: 'strncpy' specified bound 4096 equals destination size [-Werror=stringop-truncation]
8+
9+
Signed-off-by: Khem Raj <[email protected]>
10+
---
11+
src/coordinator.c | 5 +++--
12+
1 file changed, 3 insertions(+), 2 deletions(-)
13+
14+
diff --git a/src/coordinator.c b/src/coordinator.c
15+
index c139aae..ca49418 100644
16+
--- a/src/coordinator.c
17+
+++ b/src/coordinator.c
18+
@@ -296,7 +296,8 @@ int main(int argc, char **argv)
19+
if(!lease_file)
20+
lease_file = LEASE_FILE;
21+
22+
- strncpy(pname, argv[0], PATH_MAX);
23+
+ strncpy(pname, argv[0], PATH_MAX - 1);
24+
+ pname[PATH_MAX - 1] = '\0';
25+
26+
pid_file = getenv("PID_FILE");
27+
if (!pid_file)
28+
--
29+
2.16.3
30+

meta-networking/recipes-support/lowpan-tools/lowpan-tools_git.bb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
88
DEPENDS = "flex-native bison-native libnl python"
99

1010
PV = "0.3.1+git${SRCPV}"
11-
SRC_URI = "git://git.code.sf.net/p/linux-zigbee/linux-zigbee \
11+
SRC_URI = "git://github.com/linux-wpan/lowpan-tools \
1212
file://no-help2man.patch \
1313
file://0001-Fix-build-errors-with-clang.patch \
1414
file://0001-addrdb-coord-config-parse.y-add-missing-time.h-inclu.patch \
1515
file://0001-src-iz.c-Undef-dprintf-before-redefining.patch \
1616
file://0001-Remove-newline-from-format-line.patch \
17+
file://0001-coordinator-Fix-strncpy-range-warning.patch \
1718
"
18-
SRCREV = "38f42dbfce9e13629263db3bd3b81f14c69bb733"
19+
SRCREV = "1c2d8674cc6f4b1166a066e8822e295c105ae7a2"
1920

2021
S = "${WORKDIR}/git"
2122

0 commit comments

Comments
 (0)