[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lynx-dev dev11 core dump in LYEdit.c under DJGPP
From: |
dickey |
Subject: |
Re: lynx-dev dev11 core dump in LYEdit.c under DJGPP |
Date: |
Fri, 25 Dec 1998 10:28:12 -0500 (EST) |
>
> The new problem appears a couple of dev versions ago:
> when I look localfile with DJGPP port and press 'e' to edit the file
> I got a crash immediately.
>
> gdb shows a crash from extra free() in
> edit_current_file() at LYEdit.c:129 (quoted below):
thanks (will check/fix)
> #ifdef __DJGPP__
> sprintf(command, "%s %s", editor, HTDOS_name(filename));
> #else
> sprintf(command, "%s \"%s\"", editor, HTSYS_name(filename));
> #endif /* __DJGPP__ */
> #endif /* VMS */
> CTRACE(tfp, "LYEdit: %s\n", command);
> CTRACE_SLEEP(MessageSecs);
> #ifndef __EMX__
> ----> FREE(filename);
> #endif
>
> /*
> * Invoke the editor. - FM
>
>
> I change the condition to
> #if !defined(__EMX__) && !defined(__DJGPP__)
> and it works OK but I do not know the origin of the problem
> so expect problems elsewhere.
well, it doesn't seem to be directly related to the HTSprintf changes.
Perhaps I moved an ifdef.
--
Thomas E. Dickey
address@hidden
http://www.clark.net/pub/dickey