diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1998-12-26 21:00:40 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1998-12-26 21:00:40 -0500 |
commit | 8bccca15371c1bee770ef51f389a915b4ef4e417 (patch) | |
tree | 52275b2b26bb0ca082da6db8c9534f744589c2a0 /src/HTML.c | |
parent | 152e034b54f203f5b53ef44a70c57834b7b66137 (diff) | |
download | lynx-snapshots-8bccca15371c1bee770ef51f389a915b4ef4e417.tar.gz |
snapshot of project "lynx", label v2-8-2dev_12
Diffstat (limited to 'src/HTML.c')
-rw-r--r-- | src/HTML.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/HTML.c b/src/HTML.c index fa12456d..cd7dac93 100644 --- a/src/HTML.c +++ b/src/HTML.c @@ -1126,8 +1126,8 @@ PRIVATE void HTML_start_element ARGS6( if (present && present[HTML_LINK_CLASS] && value && *value[HTML_LINK_CLASS]!='\0') { - char tmp[1024]; - sprintf(tmp, "link.%s.%s.%s", value[HTML_LINK_CLASS], title, value[HTML_LINK_CLASS]); + char *tmp = 0; + HTSprintf0(&tmp, "link.%s.%s.%s", value[HTML_LINK_CLASS], title, value[HTML_LINK_CLASS]); CTRACE(tfp, "CSSTRIM:link=%s\n", tmp); HText_characterStyle(me->text, hash_code(tmp), 1); @@ -1136,6 +1136,7 @@ PRIVATE void HTML_start_element ARGS6( HTML_put_string(me, value[HTML_LINK_CLASS]); HTML_put_string(me, ")"); HText_characterStyle(me->text, hash_code(tmp), 0); + FREE(tmp); } else #endif |