getservbyport_r: fix out-of-bounds buffer read
[musl] / src / string / strncpy.c
1 #include <string.h>
2
3 char *strncpy(char *restrict d, const char *restrict s, size_t n)
4 {
5         __stpncpy(d, s, n);
6         return d;
7 }