mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
add_html_to_string: Let src (aka html) point to const.
This commit is contained in:
parent
80a3019a2f
commit
ab92c38ca2
@ -272,7 +272,7 @@ add_string_replace(struct string *string, unsigned char *src, int len,
|
||||
}
|
||||
|
||||
struct string *
|
||||
add_html_to_string(struct string *string, unsigned char *src, int len)
|
||||
add_html_to_string(struct string *string, const unsigned char *src, int len)
|
||||
{
|
||||
|
||||
#define isalphanum(q) (isalnum(q) || (q) == '-' || (q) == '_')
|
||||
|
@ -77,7 +77,7 @@ add_string_replace(struct string *string, unsigned char *src, int len,
|
||||
add_string_replace(str, src, len, '*', '.')
|
||||
|
||||
/* Convert reserved chars to html &#xx */
|
||||
struct string *add_html_to_string(struct string *string, unsigned char *html, int htmllen);
|
||||
struct string *add_html_to_string(struct string *string, const unsigned char *html, int htmllen);
|
||||
|
||||
/* Escapes \ and " with a \ */
|
||||
struct string *add_quoted_to_string(struct string *string, const unsigned char *q, int qlen);
|
||||
|
Loading…
Reference in New Issue
Block a user