From 5df29dba0aaa8b713981d5052ffbdb2842096a9d Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Sun, 27 Feb 2005 15:46:43 +0000 Subject: - only send exported vars (based on a diff from Solar Designer) - fix some buffer overflows (also some Solar Designer input) ok deraadt@ cloder@ --- usr.bin/telnet/authenc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/telnet/authenc.c') diff --git a/usr.bin/telnet/authenc.c b/usr.bin/telnet/authenc.c index 2b8cae647ec..8aa46027e32 100644 --- a/usr.bin/telnet/authenc.c +++ b/usr.bin/telnet/authenc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: authenc.c,v 1.6 2003/06/03 02:56:18 millert Exp $ */ +/* $OpenBSD: authenc.c,v 1.7 2005/02/27 15:46:42 otto Exp $ */ /* $NetBSD: authenc.c,v 1.5 1996/02/28 21:03:52 thorpej Exp $ */ /*- @@ -31,7 +31,7 @@ */ /* -RCSID("$Id: authenc.c,v 1.6 2003/06/03 02:56:18 millert Exp $"); +RCSID("$Id: authenc.c,v 1.7 2005/02/27 15:46:42 otto Exp $"); */ #include "telnet_locl.h" @@ -80,7 +80,7 @@ telnet_spin() telnet_getenv(val) const char *val; { - return((char *)env_getvalue((unsigned char *)val)); + return((char *)env_getvalue((unsigned char *)val, 0)); } char * -- cgit v1.2.3