From ab92c38ca2f3579b4a144e20e1d6b8bce8a9ec49 Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Mon, 5 Mar 2007 19:35:29 +0200 Subject: [PATCH] add_html_to_string: Let src (aka html) point to const. --- src/util/conv.c | 2 +- src/util/conv.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/conv.c b/src/util/conv.c index 77cd102c..5a43dbc6 100644 --- a/src/util/conv.c +++ b/src/util/conv.c @@ -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) == '_') diff --git a/src/util/conv.h b/src/util/conv.h index 25c49968..86d220cc 100644 --- a/src/util/conv.h +++ b/src/util/conv.h @@ -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); -- 2.11.4.GIT