OK, right; this is more cleaner fix:
--- LYSession.c.orig 2008-03-04 22:35:03.000000000 +0100
+++ LYSession.c 2008-03-04 22:43:30.000000000 +0100
@@ -64,10 +64,11 @@
VisitedLink *vl;
int i = 0;
short errors = 10; /* how many syntax errors are allowed in
-
- session file before aborting. */
+ * session file before aborting. */
char *value1, *value2, *rsline, *linktext, *rslevel;
+ memset(&doc, 0, sizeof(doc));
+
/*
* This should be done only once, here: iff USE_SESSIONS is defined or:
* in mainloop(), otherwise history entries are lost
On 3/4/08, Gisle Vanem <[EMAIL PROTECTED]> 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
> [email protected]
> http://lists.nongnu.org/mailman/listinfo/lynx-dev
>
_______________________________________________
Lynx-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lynx-dev