From b7dc727b8da786812f5b7dc381518ab10b3d69eb Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sun, 15 Oct 2006 07:50:16 +0000 Subject: [PATCH] Fix logic bug in string allocation git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18704 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/bsd/krshd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/appl/bsd/krshd.c b/src/appl/bsd/krshd.c index 0989158c0..3642501f6 100644 --- a/src/appl/bsd/krshd.c +++ b/src/appl/bsd/krshd.c @@ -1493,7 +1493,7 @@ void doit(f, fromp) if(getenv(save_env[cnt])) { buf2 = (char *)malloc(strlen(getenv(save_env[cnt])) - +strlen(save_env[cnt]+2)); + +strlen(save_env[cnt])+2); if (buf2) { sprintf(buf2, "%s=%s", save_env[cnt], getenv(save_env[cnt])); -- 2.26.2