lynx-dev
[Top][All Lists]
Advanced

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

LYNX-DEV Patch for 2.7 (vanilla,bugfixed,devel) LYUtils.c (prevent fatal


From: Klaus Weide
Subject: LYNX-DEV Patch for 2.7 (vanilla,bugfixed,devel) LYUtils.c (prevent fatal error)
Date: Mon, 31 Mar 1997 07:49:21 -0700 (MST)

*** /usr/ns-home/docs/lynx/src/kweide/offi/lynx2-7/src/LYUtils.c~       Sun Feb 
 9 04:39:30 1997
--- lynx2-7/src/LYUtils.c       Mon Mar 31 07:41:59 1997
***************
*** 2241,2252 ****
                if ((stat(cp, &st) > -1) ||
                    (fptemp = fopen(cp, "r")) != NULL) {
                    /*
!                    *  It is a subdirectory of file on the local system
                     *  with escaped characters and/or a fragment to be
                     *  appended to the URL. - FM
                     */
!                   *fragment = '#';
!                   fragment = NULL;
                    StrAllocCat(*AllocatedString, temp);
                    if (TRACE) {
                        fprintf(stderr, "Converted '%s' to '%s'\n",
--- 2241,2254 ----
                if ((stat(cp, &st) > -1) ||
                    (fptemp = fopen(cp, "r")) != NULL) {
                    /*
!                    *  It is a subdirectory or file on the local system
                     *  with escaped characters and/or a fragment to be
                     *  appended to the URL. - FM
                     */
!                   if (fragment != NULL) {
!                       *fragment = '#';
!                       fragment = NULL;
!                   }
                    StrAllocCat(*AllocatedString, temp);
                    if (TRACE) {
                        fprintf(stderr, "Converted '%s' to '%s'\n",

;
; 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]