1
--- vdr-plugin-epgsearch/epgsearchext.c.bak 2021-05-18 09:16:41.627381361 +0000
2
+++ vdr-plugin-epgsearch/epgsearchext.c 2021-05-18 09:16:51.650963022 +0000
5
char buffer[MAXPARSEBUFFER];
7
- while (fgets(buffer, sizeof(buffer), f) > 0) {
8
+ while (fgets(buffer, sizeof(buffer), f)) {
10
char *p = strchr(buffer, '#');
11
if (p == buffer) *p = 0;
12
--- vdr-plugin-epgsearch/createcats.c.bak 2021-05-18 09:19:49.987519874 +0000
13
+++ vdr-plugin-epgsearch/createcats.c 2021-05-18 09:19:58.591160769 +0000
16
char *cReadLine::Read(FILE *f)
18
- if (fgets(buffer, sizeof(buffer), f) > 0) {
19
+ if (fgets(buffer, sizeof(buffer), f)) {
20
int l = strlen(buffer) - 1;
21
if (l >= 0 && buffer[l] == '\n')