summaryrefslogtreecommitdiffstats
path: root/libexec/talkd
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2002-05-22 20:16:17 +0000
committermillert <millert@openbsd.org>2002-05-22 20:16:17 +0000
commitb049587c67d88036c5095e17318a42c75d0c1f68 (patch)
treee8fbf203dcb18582891ac2946f6e0abece3b77c1 /libexec/talkd
parentoops, backwards length check; moritz@jodeit.org (diff)
downloadwireguard-openbsd-b049587c67d88036c5095e17318a42c75d0c1f68.tar.xz
wireguard-openbsd-b049587c67d88036c5095e17318a42c75d0c1f68.zip
Fix last commit.
Diffstat (limited to 'libexec/talkd')
-rw-r--r--libexec/talkd/process.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libexec/talkd/process.c b/libexec/talkd/process.c
index 546098d52ab..3ca736ffc5c 100644
--- a/libexec/talkd/process.c
+++ b/libexec/talkd/process.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: process.c,v 1.12 2002/05/22 20:01:28 millert Exp $ */
+/* $OpenBSD: process.c,v 1.13 2002/05/22 20:16:17 millert Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
@@ -35,7 +35,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)process.c 5.10 (Berkeley) 2/26/91";*/
-static char rcsid[] = "$Id: process.c,v 1.12 2002/05/22 20:01:28 millert Exp $";
+static char rcsid[] = "$Id: process.c,v 1.13 2002/05/22 20:16:17 millert Exp $";
#endif /* not lint */
/*
@@ -227,8 +227,8 @@ find_user(name, tty, ttyl)
memcpy(line, ubuf.ut_line, UT_LINESIZE);
line[sizeof(line)-1] = '\0';
- strlcat(ftty+sizeof(_PATH_DEV)-1, line,
- sizeof(ftty));
+ ftty[sizeof(_PATH_DEV)-1] = '\0';
+ strlcat(ftty, line, sizeof(ftty));
if (stat(ftty, &statb) == 0) {
if (!(statb.st_mode & S_IWGRP)) {
if (status == NOT_HERE)