Changeset 1627


Ignore:
Timestamp:
02/20/10 08:22:50 (11 years ago)
Author:
merek
Message:

Fix buffer overflow in logCWtoFile - Call logCWtoFile only if cwlogpath is set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/oscam.c

    r1617 r1627  
    14031403
    14041404    FILE *pfCWL;
    1405     char srvname[23];
     1405    char srvname[128];
    14061406    /* %s / %s   _I  %04X  _  %s  .cwl  */
    14071407    char buf[sizeof(cfg->cwlogdir)+1+6+2+4+1+sizeof(srvname)+5];
     
    14911491  if (er->rc==1||(er->gbxRidx&&er->rc==0)){
    14921492    store_ecm(er);
     1493
     1494  if (cfg->cwlogdir != NULL)
    14931495    logCWtoFile(er);
    14941496  } 
Note: See TracChangeset for help on using the changeset viewer.