lynx-dev
[Top][All Lists]
Advanced

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

LYNX-DEV Patch to v2.7 LYMainLoop.c for bug in bookmark startfile handli


From: Foteos Macrides
Subject: LYNX-DEV Patch to v2.7 LYMainLoop.c for bug in bookmark startfile handling.
Date: Tue, 18 Feb 1997 10:01:17 -0500 (EST)

        Patch for the February 15, 1997 Lynx v2.7 release to recognize
a bookmark file used as the startfile, whether it resides in the home
directory or in a subdirectory off home.  The released code failed if
the file was in home, and not in a subdirectory (unless the -book
switch was used instead of a startfile entry or WWW_HOME variable).

                                Fote

=========================================================================
 Foteos Macrides            Worcester Foundation for Biomedical Research
 address@hidden         222 Maple Avenue, Shrewsbury, MA 01545
=========================================================================

*** lynx2-7/src/LYMainLoop.c_ori        Wed Feb 12 13:15:22 1997
--- lynx2-7/src/LYMainLoop.c    Tue Feb 18 07:47:00 1997
***************
*** 516,525 ****
                            if ((cp = (char *)calloc(1,
                                  (strlen((char *)&temp[len]) + 2))) == NULL)
                                outofmem(__FILE__, "mainloop");
!                           if (temp[len] == '/')
!                               sprintf(cp, ".%s", (char *)&temp[len]);
!                           else
!                               strcpy(cp, (char *)&temp[len]);
                            for (i = 0; i <= MBM_V_MAXFILES; i++) {
                                if (MBM_A_subbookmark[i] &&
  #ifdef VMS
--- 516,530 ----
                            if ((cp = (char *)calloc(1,
                                  (strlen((char *)&temp[len]) + 2))) == NULL)
                                outofmem(__FILE__, "mainloop");
!                           if (temp[len] == '/') {
!                               if (strchr((char *)&temp[(len + 1)], '/')) {
!                                   sprintf(cp, ".%s", (char *)&temp[len]);
!                               } else {
!                                   strcpy(cp, (char *)&temp[(len + 1)]);
!                               }
!                           } else {
!                               strcpy(cp, (char *)&temp[len]);
!                           }
                            for (i = 0; i <= MBM_V_MAXFILES; i++) {
                                if (MBM_A_subbookmark[i] &&
  #ifdef VMS
;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

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