From 8ee5b68534bc5defc9f967f46d5fc8452108e772 Mon Sep 17 00:00:00 2001 From: pl Date: Mon, 24 Dec 2001 10:35:43 +0000 Subject: memset is more portable than bzero ("BSD"ism) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3701 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/dvdauth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libmpdemux/dvdauth.c') 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); -- cgit v1.2.3