diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-09-16 09:32:48 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-09-16 09:32:48 +0100 |
commit | 9ee6d97c2883d42f204a533a8bc1f4562df778fb (patch) | |
tree | b690ddc0ca30f1472887edbb0b8313629bfcbbb2 /media-radio/tlf/files | |
parent | b17a3ef12038de50228bade1f05502c74e135321 (diff) |
gentoo resync : 16.09.2020
Diffstat (limited to 'media-radio/tlf/files')
-rw-r--r-- | media-radio/tlf/files/tlf-1.4.1-zone_nr.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/media-radio/tlf/files/tlf-1.4.1-zone_nr.patch b/media-radio/tlf/files/tlf-1.4.1-zone_nr.patch new file mode 100644 index 000000000000..cc5cf3775920 --- /dev/null +++ b/media-radio/tlf/files/tlf-1.4.1-zone_nr.patch @@ -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) |