[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev [2.8.1dev.25] patch for LYLoadCookies(), again
From: |
brian j. pardy |
Subject: |
lynx-dev [2.8.1dev.25] patch for LYLoadCookies(), again |
Date: |
Mon, 7 Sep 1998 13:58:58 -0700 |
That `break;' should be a `continue;', or it's an even uglier bug.
Here's a fixed one.
diff -cr lynx2.8.1dev.25/src/LYCookie.c lynx2.8.1dev.25.bri/src/LYCookie.c
*** lynx2.8.1dev.25/src/LYCookie.c Mon Sep 7 03:02:16 1998
--- lynx2.8.1dev.25.bri/src/LYCookie.c Mon Sep 7 13:47:21 1998
***************
*** 1845,1852 ****
int tok_loop;
char *tok_values[] = {domain, what, path, secure, expires_a, name,
value, NULL};
char *tok_out, *tok_ptr;
! fgets(buf, 4999, cookie_handle); /* test return value */
/*
* Tokenise the cookie line into it's component parts -
--- 1845,1857 ----
int tok_loop;
char *tok_values[] = {domain, what, path, secure, expires_a, name,
value, NULL};
char *tok_out, *tok_ptr;
+ int j;
! j = fgets(buf, 4999, cookie_handle);
!
! if((j == NULL) || (buf[0] == '\0' || buf[0] == '\n')) {
! continue;
! }
/*
* Tokenise the cookie line into it's component parts -
--
Ask Not for whom the Bell Tolls, and You will Pay only the
Station-to-Station rate.
- lynx-dev [2.8.1dev.25] patch for LYLoadCookies(), again,
brian j. pardy <=