case FR_TYPE_STRING:
fr_value_box_clear_value(&state->key->data);
- if (tmpl_dcursor_print(&FR_SBUFF_IN(state->buffer, BUFFER_SIZE), &state->cc) > 0) {
+ if (tmpl_dcursor_print(&FR_SBUFF_OUT(state->buffer, BUFFER_SIZE), &state->cc) > 0) {
fr_value_box_strdup(state->key, &state->key->data, NULL, state->buffer, false);
}
break;
RPEDEBUG("Failed allocating space for unescaped string");
return XLAT_ACTION_FAIL;
}
- sbuff = FR_SBUFF_IN(out_p, arg->vb_length);
+ sbuff = FR_SBUFF_OUT(out_p, talloc_array_length(out_p));
p = arg->vb_strvalue;
end = p + arg->vb_length;