change bzero to memset
authorJohn Kohl <jtkohl@mit.edu>
Thu, 8 Nov 1990 17:19:52 +0000 (17:19 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Thu, 8 Nov 1990 17:19:52 +0000 (17:19 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1441 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/ccache/file/fcc_destry.c
src/lib/krb5/ccache/file/fcc_nseq.c
src/lib/krb5/keytab/file/ktf_get_na.c
src/lib/krb5/keytab/file/ktf_util.c
src/lib/krb5/keytab/ktfr_entry.c
src/lib/krb5/keytab/read_servi.c

index e4c0d462a1e73ccc6b0c91dc5a3e6acfdcb4e951..5da24363c32fe5b0205936aca77ee83704fe7991 100644 (file)
@@ -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);
index ea96c34fe4dfdec7f05141ab8bbf7874444fd256..9208701190ef9e2573d69fc0e3992d91096cee1d 100644 (file)
@@ -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);
index c5447ac2e5db8def82aff51ca42370377610f758..0fcc06f1ce9481a195c14ec8ada94b8104a86298 100644 (file)
@@ -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 */
 }
index 55f66918f445a73e8ed33796c055179ced33ab21..777b0a065c9d1d82ce5f38c438a1c346bff8f257 100644 (file)
@@ -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;
     }  
index f8349c83fb827d81f549352c8fa014711e95a0ab..add089f2269eff43d90c331187cab0e346deca1d 100644 (file)
@@ -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;
 }
index 2b9fe44ff8aef49a37735d7b508d4b205575a727..7a39bc8bdf3b0b54c2fb648f41b40fc91e0d7cc9 100644 (file)
@@ -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);
     }