From 23d6ff5d4dcae9f4f5ef1597b8009d0a157d60d7 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Thu, 8 Nov 1990 17:19:52 +0000 Subject: [PATCH] change bzero to memset git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1441 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/ccache/file/fcc_destry.c | 2 +- src/lib/krb5/ccache/file/fcc_nseq.c | 2 +- src/lib/krb5/keytab/file/ktf_get_na.c | 2 +- src/lib/krb5/keytab/file/ktf_util.c | 2 +- src/lib/krb5/keytab/ktfr_entry.c | 2 +- src/lib/krb5/keytab/read_servi.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/krb5/ccache/file/fcc_destry.c b/src/lib/krb5/ccache/file/fcc_destry.c index e4c0d462a..5da24363c 100644 --- a/src/lib/krb5/ccache/file/fcc_destry.c +++ b/src/lib/krb5/ccache/file/fcc_destry.c @@ -65,7 +65,7 @@ krb5_error_code krb5_fcc_destroy(id) /* XXX This may not be legal XXX */ size = (unsigned long) buf.st_size; - bzero(zeros, BUFSIZ); + memset(zeros, 0, BUFSIZ); for (i=0; i < size / BUFSIZ; i++) if (write(((krb5_fcc_data *) id->data)->fd, zeros, BUFSIZ) < 0) { ret = krb5_fcc_interpret(errno); diff --git a/src/lib/krb5/ccache/file/fcc_nseq.c b/src/lib/krb5/ccache/file/fcc_nseq.c index ea96c34fe..920870119 100644 --- a/src/lib/krb5/ccache/file/fcc_nseq.c +++ b/src/lib/krb5/ccache/file/fcc_nseq.c @@ -51,7 +51,7 @@ krb5_fcc_next_cred(id, cursor, creds) krb5_error_code kret; krb5_fcc_cursor *fcursor; - bzero((char *)creds, sizeof(*creds)); + memset((char *)creds, 0, sizeof(*creds)); if (OPENCLOSE(id)) { ret = open(((krb5_fcc_data *) id->data)->filename, O_RDONLY, 0); diff --git a/src/lib/krb5/keytab/file/ktf_get_na.c b/src/lib/krb5/keytab/file/ktf_get_na.c index c5447ac2e..0fcc06f1c 100644 --- a/src/lib/krb5/keytab/file/ktf_get_na.c +++ b/src/lib/krb5/keytab/file/ktf_get_na.c @@ -32,7 +32,7 @@ krb5_ktfile_get_name(id, name, len) * to fit in name if necessary. */ { - bzero(name, len); + memset(name, 0, len); strncpy(name, KTFILENAME(id), len); return(0); /* XXX */ } diff --git a/src/lib/krb5/keytab/file/ktf_util.c b/src/lib/krb5/keytab/file/ktf_util.c index 55f66918f..777b0a065 100644 --- a/src/lib/krb5/keytab/file/ktf_util.c +++ b/src/lib/krb5/keytab/file/ktf_util.c @@ -209,7 +209,7 @@ krb5_keytab_entry *entry; goto abend; } if (!xfwrite(entry->key.contents, sizeof(krb5_octet), size, KTFILEP(id))) { - bzero(iobuf, sizeof(iobuf)); + memset(iobuf, 0, sizeof(iobuf)); setbuf(KTFILEP(id), 0); return KRB5_KT_IOERR; } diff --git a/src/lib/krb5/keytab/ktfr_entry.c b/src/lib/krb5/keytab/ktfr_entry.c index f8349c83f..add089f22 100644 --- a/src/lib/krb5/keytab/ktfr_entry.c +++ b/src/lib/krb5/keytab/ktfr_entry.c @@ -24,7 +24,7 @@ krb5_kt_free_entry (entry) krb5_keytab_entry *entry; { krb5_free_principal(entry->principal); - bzero((char *)entry->key.contents, entry->key.length); + memset((char *)entry->key.contents, 0, entry->key.length); xfree(entry->key.contents); return 0; } diff --git a/src/lib/krb5/keytab/read_servi.c b/src/lib/krb5/keytab/read_servi.c index 2b9fe44ff..7a39bc8bd 100644 --- a/src/lib/krb5/keytab/read_servi.c +++ b/src/lib/krb5/keytab/read_servi.c @@ -60,7 +60,7 @@ OLDDECLARG(krb5_keyblock **, key) sizeof(keytabname) - 1))!= KSUCCESS) return (kerror); } else { - bzero(keytabname, sizeof(keytabname)); + memset(keytabname, 0, sizeof(keytabname)); (void) strncpy(keytabname, (char *)keyprocarg, sizeof(keytabname) - 1); } -- 2.26.2