From f380b30e75ee5dc92dd8c89ba39f1fa6af8207b1 Mon Sep 17 00:00:00 2001 From: Ruben Ayrapetyan Date: Thu, 25 Sep 2014 16:08:48 +0400 Subject: [PATCH] Fixing 'print' native call. --- src/libcoreint/opcodes-native-call.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcoreint/opcodes-native-call.c b/src/libcoreint/opcodes-native-call.c index ccaa61cf6..81e8bd89d 100644 --- a/src/libcoreint/opcodes-native-call.c +++ b/src/libcoreint/opcodes-native-call.c @@ -139,7 +139,7 @@ opfunc_native_call (opcode_t opdata, /**< operation data */ ecma_string_to_zt_string (str_p, zt_str_p, zt_str_size); #if defined (CONFIG_ECMA_CHAR_ASCII) - __printf ("%s\n", (char*) str_p); + __printf ("%s\n", (char*) zt_str_p); #elif defined (CONFIG_ECMA_CHAR_UTF16) JERRY_UNIMPLEMENTED (); #else /* !CONFIG_ECMA_CHAR_ASCII && !CONFIG_ECMA_CHAR_UTF16 */