[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lynx-dev] session_file fix
From: |
Paul B. Mahol |
Subject: |
Re: [Lynx-dev] session_file fix |
Date: |
Tue, 4 Mar 2008 18:36:53 +0100 |
How to reproduce this.
On 3/4/08, Gisle Vanem <address@hidden> wrote:
> I discovered another problem; the djgpp version crashed in free() due to
> 'doc.address' having a random value. Fix by clearing the 'doc' structure
> first:
>
> --- orig/src/LYSession.c Sun Feb 17 21:00:58 2008
> +++ src/LYSession.c Tue Mar 04 15:39:29 2008
> @@ -123,6 +123,7 @@
> *value1++ = 0;
> if ((value2 = strchr(value1, '\t')) != 0) {
> *value2++ = 0;
> + memset(&doc, 0, sizeof(doc));
> doc.line = atoi(rsline);
> doc.link = atoi(linktext);
> StrAllocCopy(doc.address, value1);
>
> --gv
>
>
> _______________________________________________
> Lynx-dev mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/lynx-dev
>