/* 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);
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);
* to fit in name if necessary.
*/
{
- bzero(name, len);
+ memset(name, 0, len);
strncpy(name, KTFILENAME(id), len);
return(0); /* XXX */
}
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;
}
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;
}
sizeof(keytabname) - 1))!= KSUCCESS)
return (kerror);
} else {
- bzero(keytabname, sizeof(keytabname));
+ memset(keytabname, 0, sizeof(keytabname));
(void) strncpy(keytabname, (char *)keyprocarg,
sizeof(keytabname) - 1);
}