Since the length is known from a strlen, memcpy can be used instead of strcpy. This avoids two passes over the string to find the terminating NUL character.
- links to
-
Commit(master) openjdk/jdk/a7359a50
-
Review(master) openjdk/jdk/24651