From patchwork Mon Nov 7 02:49:40 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "C.Y.M" X-Patchwork-Id: 12083 Received: from c-24-10-6-146.hsd1.ca.comcast.net ([24.10.6.146] helo=nofear.bounceme.net) by www.linuxtv.org with esmtp (Exim 4.50) id 1EYx3r-0005fE-Kv for vdr@linuxtv.org; Mon, 07 Nov 2005 03:48:43 +0100 Received: from [10.1.1.66] (hades [10.1.1.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by nofear.bounceme.net (Postfix) with ESMTP id D2E9E73546 for ; Sun, 6 Nov 2005 18:48:06 -0800 (PST) Message-ID: <436EC0C4.2070209@syphir.sytes.net> Date: Sun, 06 Nov 2005 18:49:40 -0800 From: "C.Y.M" Organization: CooLNeT User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: VDR Mailing List Subject: Re: [vdr] readline patches for broken plugins (vdr-1.3.36) References: <436E8B2A.1050704@syphir.sytes.net> <436EAAC8.6050206@gmx.de> <436EAF2A.9000106@syphir.sytes.net> In-Reply-To: <436EAF2A.9000106@syphir.sytes.net> X-Enigmail-Version: 0.92.1.0 X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: syphir@syphir.sytes.net, VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Nov 2005 02:48:44 -0000 Status: O X-Status: X-Keywords: X-UID: 5962 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, diff -ru mplayercluster-0.0.1a.orig/compatibility.c mplayercluster-0.0.1a/compatibility.c --- mplayercluster-0.0.1a.orig/compatibility.c 2005-10-12 19:28:16.000000000 -0700 +++ mplayercluster-0.0.1a/compatibility.c 2005-11-06 14:10:35.000000000 -0800 @@ -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; }