diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-11-18 22:57:18 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-11-18 22:57:18 +0100 |
commit | 5f24b38adeebd90f8cec5805a9f13c9228f061bd (patch) | |
tree | 5ccbb3299d04757ad176077bc1cd307c13971e82 /src/security.c | |
parent | set user and group (diff) | |
download | libpassphrase-5f24b38adeebd90f8cec5805a9f13c9228f061bd.tar.gz libpassphrase-5f24b38adeebd90f8cec5805a9f13c9228f061bd.tar.bz2 libpassphrase-5f24b38adeebd90f8cec5805a9f13c9228f061bd.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/security.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/security.c b/src/security.c index b645b32..626110a 100644 --- a/src/security.c +++ b/src/security.c @@ -113,13 +113,13 @@ void chown_tty(uid_t owner, gid_t group, char with_fail) if (ioctl(STDIN_FILENO, VT_GETSTATE, &vtstat) == 0) { int n = vtstat.v_active; - char _vcs[VCS_VCSA_LEN]; - char _vcsa[VCS_VCSA_LEN]; + char _vcs[VCS_VCSA_LEN + 6]; + char _vcsa[VCS_VCSA_LEN + 6]; char* vcs = _vcs; char* vcsa = _vcsa; - vcs += VCS_VCSA_LEN; - vcsa += VCS_VCSA_LEN; + vcs += VCS_VCSA_LEN + 6; + vcsa += VCS_VCSA_LEN + 6; if (n) { |