| 
      
      
      From: David E. <de...@us...> - 2005-07-29 06:39:38
      
     | 
| Rildo Pragana wrote:
 > Mr. Ravi Katti  have posted a program that show an obscure bug, which
 > compiled without a glitch, but crashed his program at runtime. After
 > some hours debugging I found why. There is a serious bug in memory
 > allocation, which I have already fixed.
That was a difficult bug to isolate.
Good work.
 > ...
 > This is based on the SourceForge CVS, but some days before the
 > latest 0.63 release.
 > ...
Unfortunately some bug fixes to the curses code (scr_curses.c) were omitted.
For example the 'pair_content()' function call will cause a seg-fault in 
some versions of ncurses when the terminal does not support color.
So it needs to be enclosed in a 'has_colors()' test.
Example:
if (has_colors()) {
    start_color();
    pair_content(0,&fore_color,&back_color);
}
There were also some fixes to attributes, such as underline, which 
failed to work under some terminals (ex: vt220).
Anyway these changes should not interfere with your code changes, so I 
think they should be included.
 > Unfortunately, I lost access to SF's CVS server.
You still have admin status for the TC project on SF.
What kind of problem are you experiencing ?
 |