readline patches for broken plugins (vdr-1.3.36)
Commit Message
I just noticed that text2skin is already fixed in cvs, so just ignore that one I
posted. Also, I noticed a typo in one of the attached patches from my first
post. Here goes again...
Best Regards,
@@ -160,12 +160,13 @@
char *readline(FILE *f)
{
- static char buffer[MAXPARSEBUFFER];
- if (fgets(buffer, sizeof(buffer), f) > 0) {
- int l = strlen(buffer) - 1;
- if (l >= 0 && buffer[l] == '\n')
- buffer[l] = 0;
- return buffer;
+ char *s;
+ cReadLine ReadLine;
+ if ((s = ReadLine.Read(f)) != NULL) {
+ int l = strlen(s) - 1;
+ if (l >= 0 && s[l] == '\n')
+ s[l] = 0;
+ return s;
}
return NULL;
}