fix strncat and wcsncat (double null termination)
[musl] / src / thread / cancellation2.c