X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/20eb516fdebd2fb901e6a09ffa7e741cfb8e3a83..3bc429127d05ea3c84e3c151d53ad3546bea5e9b:/env.c diff --git a/env.c b/env.c index d648b79..57d029a 100644 --- a/env.c +++ b/env.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: env.c,v 1.2 2000/06/17 10:39:00 mdw Exp $ + * $Id: env.c,v 1.5 2004/04/08 01:36:11 mdw Exp $ * * Fiddling with environment variables * @@ -27,17 +27,6 @@ * MA 02111-1307, USA. */ -/*----- Revision history --------------------------------------------------* - * - * $Log: env.c,v $ - * Revision 1.2 2000/06/17 10:39:00 mdw - * Add support for arena management. - * - * Revision 1.1 1999/07/26 23:15:57 mdw - * Fiddling with environment variables. - * - */ - /*----- Header files ------------------------------------------------------*/ #include @@ -174,7 +163,7 @@ char **env_export(sym_table *t) for (sym_mkiter(&i, t); (v = sym_next(&i)) != 0; ) { n++; - sz += strlen(SYM_NAME(v)) + strlen(v->v) + 2; + sz += SYM_LEN(v) + strlen(v->v) + 2; } /* --- Allocate the big chunk of memory --- */