diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-04-09 18:04:18 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-04-09 18:04:18 +0300 |
commit | 24ddf2742b0034089bce38e5f4ebd99b93c6e161 (patch) | |
tree | f1bebfcf20d78673b656122b0258c5054a999562 /old-extension/bindarr.c | |
parent | 9091a155190093c3d2dbbed4bd29b0feec50c8ce (diff) | |
download | egawk-24ddf2742b0034089bce38e5f4ebd99b93c6e161.tar.gz egawk-24ddf2742b0034089bce38e5f4ebd99b93c6e161.tar.bz2 egawk-24ddf2742b0034089bce38e5f4ebd99b93c6e161.zip |
Further fixes from Andrew Schorr.
Diffstat (limited to 'old-extension/bindarr.c')
-rw-r--r-- | old-extension/bindarr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/old-extension/bindarr.c b/old-extension/bindarr.c index 28da389a..41467425 100644 --- a/old-extension/bindarr.c +++ b/old-extension/bindarr.c @@ -235,7 +235,7 @@ do_bind_array(int nargs) } /* copy the array -- this is passed as the second argument to the functions */ - emalloc(aname, char *, strlen(t->vname) + 1, "do_bind_array"); + emalloc(aname, char *, 1 + strlen(symbol->vname) + 1, "do_bind_array"); aname[0] = '~'; /* any illegal character */ strcpy(& aname[1], symbol->vname); td = make_array(); |