Use memcpy() instead of snprintf() with "%s" format