diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-05-25 23:42:40 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 06:55:04 +0200 |
commit | 5f968f9b788ff997c21d5463394db2a975d55ed2 (patch) | |
tree | aebf1728893b9497a1b172cedce6a12106b202a1 /tests | |
parent | e7365234460fc9fb949a6a9745b7041b04b6a6a4 (diff) |
Fix tests etc
Diffstat (limited to 'tests')
-rw-r--r-- | tests/main.c | 4 |
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) { |