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

Ben Duncan ben at versaccounting.com
Fri Jun 10 13:55:55 EDT 2005


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





More information about the slang-users-l mailing list