Moved memset to resize_and_cpy to avoid having its called duplicated and
changed how the loop condition is tested to save an unnecessary branch.
Forgot to include the header auto-dependency files.
BUGFIX: buffer overflow in String_format.