aboutsummaryrefslogtreecommitdiff
path: root/tests/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/main.c')
-rw-r--r--tests/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/main.c b/tests/main.c
index 4d16ad6..7888ea1 100644
--- a/tests/main.c
+++ b/tests/main.c
@@ -20,8 +20,8 @@ static char* get_file_content(const char *filepath) {
static void result_callback(QuickMediaHtmlNode *node, void *userdata) {
const char *href = quickmedia_html_node_get_attribute_value(node, "href");
- QuickMediaStringView text = quickmedia_html_node_get_text(node);
- printf("a href: %s, node value: %.*s\n", href, text.size, text.data);
+ const char *text = quickmedia_html_node_get_text(node);
+ printf("a href: %s, node value: %s\n", href, text);
}
int main(int argc, char **argv) {