lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev How about this?


From: Leonid Pauzner
Subject: Re: lynx-dev How about this?
Date: Fri, 24 Dec 1999 21:34:58 +0300 (MSK)

21-Dec-99 18:51 brian j pardy wrote:
[...]
> diff -ru 2.8.3dev.17/src/LYMain.c 2.8.3dev.17.bri/src/LYMain.c
> --- 2.8.3dev.17/src/LYMain.c  Wed Dec 15 18:22:16 1999
> +++ 2.8.3dev.17.bri/src/LYMain.c      Tue Dec 21 18:48:44 1999
> @@ -1605,28 +1605,29 @@
>       LYLoadCookies(LYCookieFile);
>      }

How about tilde_expand(&LYCookieSaveFile) instead?

e.g. made PUBLIC void tilde_expand(char **path)

> +    /* tilde-expand LYCookieSaveFile */
> +    if (LYCookieSaveFile != NULL) {
> +     if (LYCookieSaveFile[0] == '~' && LYCookieSaveFile[1] == '/' &&
> +       LYCookieSaveFile[2] != '\0') {
> +         temp = NULL;
> +         StrAllocCopy(temp, LYCookieSaveFile + 2);
> +         StrAllocCopy(LYCookieSaveFile, wwwName(Home_Dir()));
> +         LYAddPathSep(&LYCookieSaveFile);
> +         StrAllocCat(LYCookieSaveFile, temp);
> +         FREE(temp);
> +     }
> +    }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]