1
0
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:
Kalle Olavi Niemitalo 2007-03-05 19:35:29 +02:00 committed by Kalle Olavi Niemitalo
parent 80a3019a2f
commit ab92c38ca2
2 changed files with 2 additions and 2 deletions

View File

@ -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) == '_')

View File

@ -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);