diff options
author | Aleksi Lindeman <dec05eba@protonmail.com> | 2019-05-25 23:42:40 +0200 |
---|---|---|
committer | Aleksi Lindeman <dec05eba@protonmail.com> | 2019-05-25 23:42:42 +0200 |
commit | b2fd63ad96469b450eb98a8034073f5a8c1cb95c (patch) | |
tree | 26a921d5e1cec7c001d2384f2a949e1026e6375b /tests | |
parent | c7500d39c6bae0084196ca7a7395ac85fff09928 (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) { |