1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-21 00:37:10 +00:00
termux-packages/packages/gpac/src-filters-in_dvb4linux.c.patch
2022-01-14 15:13:07 +02:00

12 lines
351 B
Diff

--- a/src/filters/in_dvb4linux.c
+++ b/src/filters/in_dvb4linux.c
@@ -126,7 +126,7 @@
if (line[0]=='\n') continue;
#ifndef GPAC_SIM_LINUX_DVB
- strncpy(chan_name_t, line, index(line, ':')-line);
+ strncpy(chan_name_t, line, strchr(line, ':')-line);
chan_name_t[254] = 0;
if (strncmp(chan_name,chan_name_t,strlen(chan_name))==0) {