Changeset 1672


Ignore:
Timestamp:
02/24/10 10:56:09 (11 years ago)
Author:
merek
Message:

Replace bzero with memset, as bzero is deprecated on the most oses and not portable

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/module-radegast.c

    r1660 r1672  
    174174  uchar header[22] = "\x02\x01\x00\x06\x08\x30\x30\x30\x30\x30\x30\x30\x30\x07\x04\x30\x30\x30\x38\x08\x01\x02";
    175175  uchar *ecmbuf = malloc(er->l + 30);
    176   bzero(ecmbuf, er->l + 30);
     176  memset(ecmbuf, 0, er->l + 30);
    177177
    178178  ecmbuf[0] = 1;
  • trunk/oscam-config.c

    r1658 r1672  
    530530      exit(1);
    531531    }
    532     bzero(cfg->cc_version, sizeof(cfg->cc_version));
     532    memset(cfg->cc_version, 0, sizeof(cfg->cc_version));
    533533    strncpy((char*)cfg->cc_version, value, sizeof(cfg->cc_version)-1);
    534534    return;
     
    539539      exit(1);
    540540    }
    541     bzero(cfg->cc_build, sizeof(cfg->cc_build));
     541    memset(cfg->cc_build, 0, sizeof(cfg->cc_build));
    542542    strncpy((char*)cfg->cc_build, value, sizeof(cfg->cc_build)-1);
    543543    return;
     
    13961396      exit(1);
    13971397    }
    1398     bzero(rdr->cc_version, sizeof(rdr->cc_version));
     1398    memset(rdr->cc_version, 0, sizeof(rdr->cc_version));
    13991399    strncpy(rdr->cc_version, value, sizeof(rdr->cc_version)-1);
    14001400    return;
     
    14051405      exit(1);
    14061406    }
    1407     bzero(rdr->cc_build, sizeof(rdr->cc_build));
     1407    memset(rdr->cc_build, 0, sizeof(rdr->cc_build));
    14081408    strncpy(rdr->cc_build, value, sizeof(rdr->cc_build)-1);
    14091409    return;
Note: See TracChangeset for help on using the changeset viewer.