Revise the mistake in the example function described in "Step 5. Description of JerryScript value descriptors in docs/03.API-EXAMPLE.md
JerryScript-DCO-1.0-Signed-off-by: Osamu Nakamura
@@ -232,7 +232,7 @@ print_value (const jerry_value_t value)
{
/* Determining required buffer size */
jerry_size_t req_sz = jerry_get_string_size (value);
- jerry_char_t str_buf_p[req_sz];
+ jerry_char_t str_buf_p[req_sz + 1];
jerry_string_to_char_buffer (value, str_buf_p, req_sz);
str_buf_p[req_sz] = '\0';
