slang-users mailing list

[2005 Date Index] [2005 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[slang-users] Seq Faults with 2.0.3 .....


This piece of code causes a seq fault under 2.0.3.

I can remove 2.0.3 and re-install 2.0.0 and it works fine.

-----------------------------------------------------------

SLsmg_Char_Type *qm_buffer;   /* Save for screen view */

int QuickSaveScreen ( void )
{

  int SL_Rows, SL_Cols ;
  int idx, nidx ;

  SL_Rows = SLtt_Screen_Rows ;
  SL_Cols = SLtt_Screen_Cols ;

  qm_buffer =
    malloc ( sizeof ( SLsmg_Char_Type ) * ( SL_Rows  * SL_Cols ) );

  nidx = 0;
  for ( idx = 0; idx < SL_Rows ; idx++ )
    {

      SLsmg_gotorc ( idx, 0 );
      SLsmg_read_raw ( qm_buffer + nidx, SL_Cols );
      nidx += SL_Cols + 1;
    }
}

------------------------------------------------------------


Thanks ...

--
Ben Duncan   - VersAccounting Software LLC 336 Elton Road  Jackson MS, 39212
"Never attribute to malice, that which can be adequately explained by stupidity"
       - Hanlon's Razor


_______________________________________________
To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html


[2005 date index] [2005 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]