lynx-dev
[Top][All Lists]
Advanced

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

lynx-dev dev11 core dump in LYEdit.c under DJGPP


From: Leonid Pauzner
Subject: lynx-dev dev11 core dump in LYEdit.c under DJGPP
Date: Fri, 25 Dec 1998 17:54:05 +0300 (MSK)

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):


#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.



reply via email to

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