summaryrefslogtreecommitdiff
path: root/usr.bin/su/su.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1996-10-21 19:31:05 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1996-10-21 19:31:05 +0000
commit4edb4b5a595ad6408aa30e9aa6ed017a85e778e5 (patch)
treeb42bea18bd39bad0754f4402f6b708225f94d93f /usr.bin/su/su.c
parent9a1eaa67a1321c377c32a39a4bb20324c1bfd6de (diff)
Test first, then commit, eh?
Diffstat (limited to 'usr.bin/su/su.c')
-rw-r--r--usr.bin/su/su.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/su/su.c b/usr.bin/su/su.c
index c1ddc16f70f..d47e7a9475b 100644
--- a/usr.bin/su/su.c
+++ b/usr.bin/su/su.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: su.c,v 1.11 1996/10/21 19:26:24 millert Exp $ */
+/* $OpenBSD: su.c,v 1.12 1996/10/21 19:31:04 millert Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
@@ -41,7 +41,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)su.c 5.26 (Berkeley) 7/6/91";*/
-static char rcsid[] = "$OpenBSD: su.c,v 1.11 1996/10/21 19:26:24 millert Exp $";
+static char rcsid[] = "$OpenBSD: su.c,v 1.12 1996/10/21 19:31:04 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -427,7 +427,7 @@ koktologin(name, realm, toname)
register AUTH_DAT *kdata;
AUTH_DAT kdata_st;
- memset((void *)kdata_st, 0, sizeof(*kdata_st));
+ memset((void *)&kdata_st, 0, sizeof(*kdata_st));
kdata = &kdata_st;
(void)strncpy(kdata->pname, name, sizeof(kdata->pname) - 1);