-
Daiki Ueno authored
Even if the given string is shorter than n, the result should be null terminated. This matches the behavior of strndup().
8a2bee5b
Even if the given string is shorter than n, the result should be null terminated. This matches the behavior of strndup().