From c545ae2d90170de11806393acda197a0ca43f488 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 3 Jul 2021 18:19:05 +0200 Subject: Fix string_append incorrect allocation size --- include/quickmedia/HtmlSearch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/quickmedia/HtmlSearch.h b/include/quickmedia/HtmlSearch.h index 1a7faca..af9bd7e 100644 --- a/include/quickmedia/HtmlSearch.h +++ b/include/quickmedia/HtmlSearch.h @@ -67,7 +67,7 @@ QuickMediaStringView quickmedia_html_node_get_text(QuickMediaMatchNode *self); /* @node is only valid within the callback function scope. Return 0 to continue */ typedef int (*QuickMediaHtmlSearchResultCallback)(QuickMediaMatchNode *node, void *userdata); -/* |html_source| should be in utf8 format and may contain utf8 BOM */ +/* |html_source| should be in utf8 format and may contain utf8 BOM. |html_source| has to be valid until |quickmedia_html_search_deinit| is called. */ int quickmedia_html_search_init(QuickMediaHtmlSearch *self, const char *html_source, size_t size); void quickmedia_html_search_deinit(QuickMediaHtmlSearch *self); -- cgit v1.2.3