Branch: Tag:

2017-03-07

2017-03-07 19:58:53 by Arne Goedeke <el@laramies.com>

Interpreter: fixed buffer handling in tracing code

801: Inside #if defined(PIKE_DEBUG)
   safe_describe_svalue(&buf, Pike_sp-1,0,0);    if(buffer_content_length(&buf) > TRACE_LEN)    { -  buffer_remove(&buf, buffer_content_length(&buf) - TRACE_LEN - 3); +  buffer_remove(&buf, buffer_content_length(&buf) - TRACE_LEN);    buffer_add_str(&buf, "...");    }    fprintf(stderr,"- value: %s\n",buffer_get_string(&buf));