From 36dd27bf3f4c35fde6041a91aeb275d4c8624624 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Thu, 23 Feb 2023 17:33:50 +0000 Subject: [PATCH] Just printf, don't take length --- src/hb-wasm-api.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hb-wasm-api.hh b/src/hb-wasm-api.hh index 376ba1a7b..dbca32464 100644 --- a/src/hb-wasm-api.hh +++ b/src/hb-wasm-api.hh @@ -58,9 +58,9 @@ namespace hb { namespace wasm { static void debugprint (HB_WASM_EXEC_ENV - char *the_string, uint32_t len) + char *the_string) { - printf("%.*s", (int) len, the_string); + printf("%s", the_string); } }} #endif @@ -84,7 +84,7 @@ debugprint (HB_WASM_EXEC_ENV { NATIVE_SYMBOL ("(i)i", font_get_face), #ifdef HB_DEBUG_WASM - NATIVE_SYMBOL ("($i)", debugprint), + NATIVE_SYMBOL ("($)", debugprint), #endif }; #undef NATIVE_SYMBOL