copywin crashed under certain conditions.

2014-02-27
2014-02-27
  • WINDOW* src = newwin(11, 11, 0, 0);
    WINDOW* dst = newwin(10, 10, 0, 0);
    
    int res = copywin(src, dst, 0, 0, 0, 0, 9, 9, true); /* OK */
    res = copywin(src, dst, 0, 0, 0, 0, 11, 11, true); /* ERR */
    res = copywin(src, dst, 0, 0, 0, 0, 10, 10, true); /* crash */
    
     
  • Thanks for the report. I've committed a fix to CVS.