summaryrefslogtreecommitdiff
path: root/usr.bin/su/su.c
diff options
context:
space:
mode:
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);