From 89c50b0ccb60fc0d73f2b9d65ccbdaebe6fef5b1 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Thu, 23 Feb 2023 16:41:04 +0000 Subject: [PATCH] Fix debugprint format string --- src/hb-wasm-api.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-wasm-api.hh b/src/hb-wasm-api.hh index 2bc93cb0e..2430ae7de 100644 --- a/src/hb-wasm-api.hh +++ b/src/hb-wasm-api.hh @@ -50,7 +50,7 @@ #undef module_inst static void debugprint(wasm_exec_env_t exec_env, char *the_string, uint8_t len) { - printf("%*s", len, the_string); + printf("%.*s", len, the_string); }