Non-null-terminated strings are bad. Let's NOT create those if we get a large string equal to the max copy size. Use snprintf().