diff options
Diffstat (limited to 'nis/nss_nis/nis-proto.c')
-rw-r--r-- | nis/nss_nis/nis-proto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nis/nss_nis/nis-proto.c b/nis/nss_nis/nis-proto.c index e0c976041d..a6f57fde98 100644 --- a/nis/nss_nis/nis-proto.c +++ b/nis/nss_nis/nis-proto.c @@ -151,7 +151,7 @@ internal_nis_getprotoent_r (struct protoent *proto, if (next == NULL) return NSS_STATUS_NOTFOUND; - p = strcpy (buffer, next->val); + p = strncpy (buffer, next->val, buflen); while (isspace (*p)) ++p; |