The *_increase_by() methods already include the ".used" length.
The previous code is also adding the ".used" length resulting in an increase of ".used" * 2.
}
// Ensure that there is room for the potential terminating newline.
- status = f_string_dynamic_increase_by(destination->used + (range->stop - range->start) + 1, destination);
+ status = f_string_dynamic_increase_by((range->stop - range->start) + 1, destination);
if (F_status_is_error(status)) return status;
const f_array_length_t destination_used = destination->used;
}
// Ensure that there is room for a slash delimit, the object open character, and the end of line character.
- status = f_string_dynamic_increase_by(destination->used + (range->stop - range->start) + 3, destination);
+ status = f_string_dynamic_increase_by((range->stop - range->start) + 3, destination);
if (F_status_is_error(status)) return status;
const f_array_length_t used_start = destination->used;
}
// Ensure that there is room for a slash delimit and possibly the end of content character.
- status = f_string_dynamic_increase_by(destination->used + (range->stop - range->start) + 2, destination);
+ status = f_string_dynamic_increase_by((range->stop - range->start) + 2, destination);
if (F_status_is_error(status)) return status;
const f_array_length_t used_start = destination->used;
}
// Ensure that there is room for a slash delimit, the object open character, and the end of line character.
- status = f_string_dynamic_increase_by(destination->used + (range->stop - range->start) + 3, destination);
+ status = f_string_dynamic_increase_by((range->stop - range->start) + 3, destination);
if (F_status_is_error(status)) return status;
const f_array_length_t used_start = destination->used;
}
// Ensure that there is room for a slash delimit and possibly the end of content characters.
- status = f_string_dynamic_increase_by(destination->used + (range->stop - range->start) + 3, destination);
+ status = f_string_dynamic_increase_by((range->stop - range->start) + 3, destination);
if (F_status_is_error(status)) return status;
const f_array_length_t used_start = destination->used;
}
// Ensure that there is room for a slash delimit, the object open character, and the end of line character.
- status = f_string_dynamic_increase_by(destination->used + (range->stop - range->start) + 3, destination);
+ status = f_string_dynamic_increase_by((range->stop - range->start) + 3, destination);
if (F_status_is_error(status)) return status;
const f_array_length_t used_start = destination->used;
}
// Ensure that there is room for a slash delimit and possibly the end of content characters.
- status = f_string_dynamic_increase_by(destination->used + (range->stop - range->start) + 3, destination);
+ status = f_string_dynamic_increase_by((range->stop - range->start) + 3, destination);
if (F_status_is_error(status)) return status;
const f_array_length_t used_start = destination->used;
}
// Ensure that there is room for the potential start and stop quotes, a potential delimit at start, and the potential object open character.
- status = f_string_dynamic_increase_by(destination->used + (range->stop - range->start) + 4, destination);
+ status = f_string_dynamic_increase_by((range->stop - range->start) + 4, destination);
if (F_status_is_error(status)) return status;
const f_array_length_t input_start = range->start;