diff options
author | 1999-12-12 14:53:59 +0000 | |
---|---|---|
committer | 1999-12-12 14:53:59 +0000 | |
commit | efe75ffa845d50b380ea1ad1bfdd6d829c2c3c02 (patch) | |
tree | fff35df4129eda5d03f16d1e7bd3f7402b15d876 | |
parent | isplit complicated probe_drivers() out to own file. reviewed by pjanzen@ (diff) | |
download | wireguard-openbsd-efe75ffa845d50b380ea1ad1bfdd6d829c2c3c02.tar.xz wireguard-openbsd-efe75ffa845d50b380ea1ad1bfdd6d829c2c3c02.zip |
clear an array before filling. reviewed by pjanzen@
-rw-r--r-- | games/hunt/hunt/connect.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/games/hunt/hunt/connect.c b/games/hunt/hunt/connect.c index 06309e681f6..f1bdffffc72 100644 --- a/games/hunt/hunt/connect.c +++ b/games/hunt/hunt/connect.c @@ -1,4 +1,4 @@ -/* $OpenBSD: connect.c,v 1.4 1999/02/01 06:53:55 d Exp $ */ +/* $OpenBSD: connect.c,v 1.5 1999/12/12 14:53:59 d Exp $ */ /* $NetBSD: connect.c,v 1.3 1997/10/11 08:13:40 lukem Exp $ */ /* * Hunt @@ -33,6 +33,7 @@ do_connect(name, team, enter_status) Ttyname = ttyname(STDOUT_FILENO); if (Ttyname == NULL) Ttyname = "not a tty"; + memset(buf, '\0', sizeof buf); (void) strlcpy(buf, Ttyname, sizeof buf); uid = htonl(getuid()); |