diff options
-rw-r--r-- | cpudetect.c | 2 | ||||
-rw-r--r-- | libao2/ao_alsa5.c | 2 | ||||
-rw-r--r-- | libmpdemux/dvdauth.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/cpudetect.c b/cpudetect.c index 72ecca56c3..e2fdfa75fd 100644 --- a/cpudetect.c +++ b/cpudetect.c @@ -87,7 +87,7 @@ void GetCpuCaps( CpuCaps *caps) caps->isX86=1; - bzero(caps, sizeof(*caps)); + memset(caps, 0, sizeof(*caps)); if (!has_cpuid()) { printf("CPUID not supported!???\n"); return; diff --git a/libao2/ao_alsa5.c b/libao2/ao_alsa5.c index a7c12cba43..211bf6a7c2 100644 --- a/libao2/ao_alsa5.c +++ b/libao2/ao_alsa5.c @@ -173,7 +173,7 @@ static int init(int rate_hz, int channels, int format, int flags) if (info.flags & SND_PCM_INFO_PLAYBACK) { - bzero(&chninfo, sizeof(chninfo)); + memset(&chninfo, 0, sizeof(chninfo)); chninfo.channel = SND_PCM_CHANNEL_PLAYBACK; if ((err = snd_pcm_channel_info(alsa_handler, &chninfo)) < 0) { diff --git a/libmpdemux/dvdauth.c b/libmpdemux/dvdauth.c index 65801d6dda..248153bcef 100644 --- a/libmpdemux/dvdauth.c +++ b/libmpdemux/dvdauth.c @@ -92,7 +92,7 @@ static int path_to_lba (char *path) fp=popen(cmd,"r"); if (fp) { int ret; - bzero(cmd,sizeof(cmd)); + memset(cmd,0,sizeof(cmd)); fgets(cmd,99,fp); if ((ret=pclose(fp))) fprintf(stderr,"fibmap_mplayer: %s\n",*cmd?cmd:"no error info"); @@ -158,7 +158,7 @@ int dvd_import_key ( unsigned char *hexkey ) { unsigned char *t=key_title; int digit=4,len; - bzero(key_title,sizeof(key_title)); + memset(key_title,0,sizeof(key_title)); // printf("DVD key: %s\n",hexkey); for (len=0;len<10;len++) { // printf("-> %c\n",*hexkey); |