aboutsummaryrefslogtreecommitdiffstats
path: root/src/security.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/security.c')
-rw-r--r--src/security.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/security.c b/src/security.c
index 3abd7b4..eb4bd3c 100644
--- a/src/security.c
+++ b/src/security.c
@@ -132,8 +132,8 @@ void chown_tty(uid_t owner, gid_t group, char with_fail)
vcs -= VCS_LEN;
vcsa -= VCSA_LEN;
- strcpy(vcs, VCS);
- strcpy(vcsa, VCSA);
+ strncpy(vcs, VCS, VCS_LEN);
+ strncpy(vcsa, VCSA, VCSA_LEN);
#ifdef OWN_VCS
if (chown(vcs, owner, group) && with_fail) fail("chown");