summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sshd.c b/sshd.c
index 028c495f7..a4af9e2a3 100644
--- a/sshd.c
+++ b/sshd.c
@@ -18,7 +18,7 @@ agent connections.
18*/ 18*/
19 19
20#include "includes.h" 20#include "includes.h"
21RCSID("$Id: sshd.c,v 1.8 1999/10/29 01:49:20 damien Exp $"); 21RCSID("$Id: sshd.c,v 1.9 1999/10/29 03:09:40 damien Exp $");
22 22
23#include "xmalloc.h" 23#include "xmalloc.h"
24#include "rsa.h" 24#include "rsa.h"
@@ -2365,7 +2365,7 @@ void do_child(const char *command, struct passwd *pw, const char *term,
2365 char **pam_env = pam_getenvlist((pam_handle_t *)pamh); 2365 char **pam_env = pam_getenvlist((pam_handle_t *)pamh);
2366 for(this_var = 0; pam_env && pam_env[this_var]; this_var++) 2366 for(this_var = 0; pam_env && pam_env[this_var]; this_var++)
2367 { 2367 {
2368 if(strlen(pam_env[this_var]) < sizeof(var_name)) 2368 if(strlen(pam_env[this_var]) < (sizeof(var_name) - 1))
2369 if((equal_sign = strstr(pam_env[this_var], "=")) != NULL) 2369 if((equal_sign = strstr(pam_env[this_var], "=")) != NULL)
2370 { 2370 {
2371 memset(var_name, 0, sizeof(var_name)); 2371 memset(var_name, 0, sizeof(var_name));