* decomp_tkt.c (decomp_ticket): Fix swapped args to memset
authorTom Yu <tlyu@mit.edu>
Tue, 2 Sep 1997 01:38:13 +0000 (01:38 +0000)
committerTom Yu <tlyu@mit.edu>
Tue, 2 Sep 1997 01:38:13 +0000 (01:38 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10187 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb4/ChangeLog
src/lib/krb4/decomp_tkt.c

index 53c44afd25b6572eac6f1387ee4e8c1932415ba2..2fd446a5b1cf7ab6f068f9be913b08d4c5ed2b72 100644 (file)
@@ -1,3 +1,7 @@
+Mon Sep  1 21:37:36 1997  Tom Yu  <tlyu@mit.edu>
+
+       * decomp_tkt.c (decomp_ticket): Fix swapped args to memset.
+
 Tue Aug 12 09:10:41 1997  Ezra Peisach  <epeisach@mit.edu>
 
        * Makefile.in (OSSRCS): Add $(srcdir)/ to source location.
index 5a9213b60b9db621f693b4194951a75b3294d10c..3c595236870eadc0600ef343befbceadfe08fa35 100644 (file)
@@ -80,7 +80,7 @@ decomp_ticket(tkt, flags, pname, pinstance, prealm, paddress, session,
        setbuf(fp, keybuf);
        fwrite(tkt->dat, 1, tkt->length, fp);
        fclose(fp);
-       memset(keybuf, sizeof(keybuf), 0);      /* Clear the buffer */
+       memset(keybuf, 0, sizeof(keybuf));      /* Clear the buffer */
     }
 #endif
     pcbc_encrypt((C_Block *)tkt->dat,(C_Block *)tkt->dat,
@@ -95,7 +95,7 @@ decomp_ticket(tkt, flags, pname, pinstance, prealm, paddress, session,
        setbuf(fp, keybuf);
        fwrite(tkt->dat, 1, tkt->length, fp);
        fclose(fp);
-       memset(keybuf, sizeof(keybuf), 0);      /* Clear the buffer */
+       memset(keybuf, 0, sizeof(keybuf));      /* Clear the buffer */
     }
 #endif