From: John Kohl Date: Thu, 8 Nov 1990 15:35:44 +0000 (+0000) Subject: use memset/memcpy in the xbzero/xbcopy macros X-Git-Tag: krb5-1.0-alpha3~159 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=94d24ca1f9c8dc26955748e9372eae4a3bb4bf5b;p=krb5.git use memset/memcpy in the xbzero/xbcopy macros git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1433 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/asn.1/asn1glue.h b/src/lib/krb5/asn.1/asn1glue.h index 1be1d25c1..7d78201f4 100644 --- a/src/lib/krb5/asn.1/asn1glue.h +++ b/src/lib/krb5/asn.1/asn1glue.h @@ -24,8 +24,8 @@ #define KRB5_APOptions2krb5_apoptions(val, err) KRB5_TicketFlags2krb5_flags((struct type_KRB5_APOptions *) (val), err) /* to keep lint happy */ -#define xbcopy(src,dst,size) bcopy((char *)(src), (char *)(dst), size) -#define xbzero(targ, size) bzero((char *)(targ), size) +#define xbcopy(src,dst,size) memcpy((char *)(dst), (char *)(src), size) +#define xbzero(targ, size) memset((char *)(targ), 0, size) #define xmalloc(n) malloc((unsigned) (n)) #define xcalloc(n,s) calloc((unsigned)(n), (unsigned)(s))