mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
media-radio/tlf: Fix failig test (bug #740298)
Thanks ago for reporting Closes: https://bugs.gentoo.org/740298 Package-Manager: Portage-3.0.6, Repoman-3.0.1 Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>
This commit is contained in:
20
media-radio/tlf/files/tlf-1.4.1-zone_nr.patch
Normal file
20
media-radio/tlf/files/tlf-1.4.1-zone_nr.patch
Normal file
@@ -0,0 +1,20 @@
|
||||
diff --git a/src/zone_nr.c b/src/zone_nr.c
|
||||
index c7e2a33..805bd4e 100644
|
||||
--- a/src/zone_nr.c
|
||||
+++ b/src/zone_nr.c
|
||||
@@ -20,11 +20,14 @@
|
||||
* get zone number
|
||||
*
|
||||
*--------------------------------------------------------------*/
|
||||
-
|
||||
+#include "string.h"
|
||||
|
||||
int zone_nr(char *comment) {
|
||||
int z = 0;
|
||||
|
||||
+ if (strlen(comment) < 2)
|
||||
+ return z;
|
||||
+
|
||||
if (comment[0] <= 57 && comment[0] >= 48)
|
||||
z = (comment[0] - 48) * 10;
|
||||
if (comment[1] <= 57 && comment[1] >= 48)
|
||||
@@ -25,6 +25,8 @@ DEPEND="
|
||||
${RDEPEND}
|
||||
test? ( dev-util/cmocka )"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-zone_nr.patch )
|
||||
|
||||
src_configure() {
|
||||
append-ldflags -L/usr/$(get_libdir)/hamlib
|
||||
econf --enable-fldigi-xmlrpc
|
||||
|
||||
Reference in New Issue
Block a user