Fixes a small bug in radlogin which only surfaced rarely. Please apply with patch -p1 after changing your current directory to the top directory of the radiusclient distribution. lf, 12/27/96 --- radiusclient-0.2.7/lib/env.c Mon Sep 16 21:05:37 1996 +++ radiusclient/lib/env.c Tue Sep 17 19:59:34 1996 @@ -82,7 +82,7 @@ if (env->env[i]) { - if ((new_env = realloc(env->env[i], strlen(name)+strlen(value)+1)) == NULL) + if ((new_env = realloc(env->env[i], strlen(name)+strlen(value)+2)) == NULL) return (-1); env->env[i] = new_env; @@ -94,7 +94,7 @@ return (-1); } - if ((env->env[env->size] = malloc(strlen(name)+strlen(value)+1)) == NULL) { + if ((env->env[env->size] = malloc(strlen(name)+strlen(value)+2)) == NULL) { rc_log(LOG_CRIT, "rc_add_env: out of memory"); return (-1); }