X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/d0053e2e04b82ba280e6bffb9168ae9468eb9788..412206fddb90693452fe0329689b93b0b23eb4e2:/env.c diff --git a/env.c b/env.c index d648b79..4aff65e 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.3 2001/01/20 11:48:10 mdw Exp $ * * Fiddling with environment variables * @@ -30,6 +30,9 @@ /*----- Revision history --------------------------------------------------* * * $Log: env.c,v $ + * Revision 1.3 2001/01/20 11:48:10 mdw + * Use new @SYM_LEN@ macro for name lengths. + * * Revision 1.2 2000/06/17 10:39:00 mdw * Add support for arena management. * @@ -174,7 +177,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) + 1; } /* --- Allocate the big chunk of memory --- */