diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-12-21 21:15:59 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-12-21 21:15:59 +0000 |
commit | 8841bd89aa4d8ea17a7444ad1db67d4d0b5c6c23 (patch) | |
tree | 9052cc5b7465fe3a112109453045f2071333a492 | |
parent | 6bb6f6d3b739f84d85a593bf93cd290399f353f3 (diff) |
(internal_nis_getetherent_r): Use strncpy instead of strcpy for
security reasons.
-rw-r--r-- | nis/nss_nis/nis-ethers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nis/nss_nis/nis-ethers.c b/nis/nss_nis/nis-ethers.c index 2d08be7967..27a02fc166 100644 --- a/nis/nss_nis/nis-ethers.c +++ b/nis/nss_nis/nis-ethers.c @@ -158,7 +158,7 @@ internal_nis_getetherent_r (struct ether *eth, char *buffer, size_t buflen) if (next == NULL) return NSS_STATUS_NOTFOUND; - p = strcpy (buffer, next->val); + p = strncpy (buffer, next->val, buflen); next = next->next; while (isspace (*p)) |