diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1998-12-24 11:32:00 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1998-12-24 11:32:00 -0500 |
commit | 152e034b54f203f5b53ef44a70c57834b7b66137 (patch) | |
tree | 8f16b876c14eb3c3a1400fd4f91948baa752efd7 /WWW/Library/Implementation/HTAnchor.c | |
parent | 10f6c5df5fbd3e8a2be8a0640035680235b3f8a3 (diff) | |
download | lynx-snapshots-152e034b54f203f5b53ef44a70c57834b7b66137.tar.gz |
snapshot of project "lynx", label v2-8-2dev_11
Diffstat (limited to 'WWW/Library/Implementation/HTAnchor.c')
-rw-r--r-- | WWW/Library/Implementation/HTAnchor.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/WWW/Library/Implementation/HTAnchor.c b/WWW/Library/Implementation/HTAnchor.c index 0c1eb7dd..53ce0c78 100644 --- a/WWW/Library/Implementation/HTAnchor.c +++ b/WWW/Library/Implementation/HTAnchor.c @@ -798,13 +798,8 @@ PUBLIC char * HTAnchor_address ARGS1( !((HTChildAnchor *)me)->tag) { /* it's an adult or no tag */ StrAllocCopy(addr, me->parent->address); } else { /* it's a named child */ - addr = malloc(2 + - strlen(me->parent->address) + - strlen(((HTChildAnchor *)me)->tag)); - if (addr == NULL) - outofmem(__FILE__, "HTAnchor_address"); - sprintf(addr, "%s#%s", - me->parent->address, ((HTChildAnchor *)me)->tag); + HTSprintf0(&addr, "%s#%s", + me->parent->address, ((HTChildAnchor *)me)->tag); } } return(addr); |